Fork me on GitHub
Current release is 2.1.6 (21 Nov 2014).

Users who have not yet upgraded to 2.1 should get security release 2.0.18.14 (1 Nov 2014). We will stop providing these security releases to 2.0 at the end of this year.

Solution to 404 problem using .htaccess

edited March 2012 in Vanilla 2.0 Help
This discussion is related to the Sitemaps addon.

I was getting the problem where Google Webmaster Tools was reporting the sitemap.index.xml and the linked sitemaps as a 404. I think this is something to do with going through the Vanilla Routing. The fix I found was to add a rewrite rule to the existing .htaccess so it looks like this:

   RewriteBase /
   RewriteRule sitemap.([^\.]+).xml cache/Sitemaps/sitemap.$1.xml
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]

The plugin should then work as advertised. Hope that helps!

Tagged:
Sign In or Register to comment.