Jono Warren
Forum Replies Created
-
No problem, thanks for getting back to me.
+1 on this issue, symlinking doesn’t work as the minified files aren’t generated, just the
.filesand.idfiles.Hi Kredacter, glad to hear you got it working. All we’re doing with this fix is telling the server to redirect the requests for the sitemaps to PHP. To get it working with the news module you’ll have to:
1. Find the sitemap name
2. Find the PHP query string it should be redirected to
3. Figure out the rewrite rule and add it your server blockI haven’t used the news module so I don’t know what those things are, contacting the plugin author might be easiest: http://yoast.com/contact/
Kredacter,
You should insert the code in the server block for the site you want it work on, in my case I have multiple sites on one server so use multiple config files in my
sites-availablefolder. You may have a single site configured in your mainnginx.conf.So your server block should look something like this:
server { server_name YourDomain.com; root /var/www/YourDomain/public; # Fix Yoast SEO Sitemaps rewrite ^/sitemap_index\.xml$ /index.php?sitemap=1 last; rewrite ^/([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 last; }Then you just need to tell nginx to re-read it’s config files. In Ubuntu use the command
service nginx reload. Hope that helps.Hmm, maybe something to do with
fastcgi_intercept_errors?+1 For this. Excluding categories from the sitemap only seems to exclude the category from the category-sitemap, not the posts in that category from the posts-sitemap. If that makes sense?
This has been frustrating me for ages, so thanks for finding a solution. I’ve adapted it for use with nginx, just add the following to the server block:
rewrite ^/sitemap_index\.xml$ /index.php?sitemap=1 last; rewrite ^/([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;Yup, same here.
Forum: Plugins
In reply to: [W3 Total Cache] [Plugin: W3 Total Cache] Fingerprinting minified filesBrilliant, thanks for letting me know. Keep up the good work.