mod_rewrite allow file access
Posted: Tue Jan 27, 2009 2:20 am
I have a sitemap called web_sitemap_bf241ccb_000.xml.gz on my server and I want all .xml.gz files to be access as just the files they are, so basically just skip the mod_rewrite rules and display the files (or prompt for download).
For some reason I am having massive troubles with this. I have tried adding .xml.gz to the "skip bootstrap file" line like this:
but no dice.
I also tried doing:
again, no dice.
Basically those are my 2 relevant lines in my .htaccess file. Can anyone give me a bit of help?
For some reason I am having massive troubles with this. I have tried adding .xml.gz to the "skip bootstrap file" line like this:
Code: Select all
RewriteRule !\.(js|ico|gif|jpg|png|css|php|bmp|txt|xml|html|gz|pdf|pl|swf|xml.gz)$ index.phpI also tried doing:
Code: Select all
RewriteRule ^web_sitemap_bf241ccb_000.xml.gz$ web_sitemap_bf241ccb_000.xml.gz [L]Basically those are my 2 relevant lines in my .htaccess file. Can anyone give me a bit of help?