I am testing Local Lightning on Linux and found problem.
robots.txt, sitemap.xml and sitemap_index.xml doesn’t show with any SEO plugin.
If you insert url for example: http://domain.local/sitemap.xml it show 404 nginx error. But if you insert for example: http://domain.local/sitemap.xml/ it works. Also http://domain.local/sitemap.xmlanything works. There is problem with nginx WordPress rules. I think this affects all files straight after domain.local.
I added this code:
if (!-e $request_filename)
{
rewrite ^(.+)$ /index.php?q=$1 last;
}
in …/conf/nginx/includes/wordpress-multi.conf.hbs (for multisite or wordpress-single.conf.hbs for single site) and it works now. But http://domain.local/sitemap.xmlanything stil works and it is not ok.
location ~ ([^/]*)sitemap(.*).x(m|s)l$ {
## this rewrites sitemap.xml to /sitemap_index.xml
rewrite ^/sitemap.xml$ /sitemap_index.xml permanent;
## this makes the XML sitemaps work
rewrite ^/([a-z]+)?-?sitemap.xsl$ /index.php?yoast-sitemap-xsl=$1 last;
rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last;
rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
## The following lines are optional for the premium extensions
## News SEO
rewrite ^/news-sitemap.xml$ /index.php?sitemap=wpseo_news last;
## Local SEO
rewrite ^/locations.kml$ /index.php?sitemap=wpseo_local_kml last;
rewrite ^/geo-sitemap.xml$ /index.php?sitemap=wpseo_local last;
## Video SEO
rewrite ^/video-sitemap.xsl$ /index.php?yoast-sitemap-xsl=video last;
}