Apache ReWrite rule to exclude an individual file or type of file?
Can you help me with an Apache rule to exclude a particular file name or type of file? Here are my current rules:
RewriteRule ^/(?:blog)/ - [L]
RewriteRule ^crossdomain\.xml$ - [L] (Based on first response)
RewriteRule ^/(.*_css.*\.css.*) /$1 [QSA,L]
RewriteRule ^/(.*_js.*\.js.*) /$1 [QSA,L]
RewriteRule ^/(.*_swf.*\.swf.*) /$1 [QSA,L]
RewriteRule ^/(.*_img.*\.[jpg|JPG|jpeg|JPEG|开发者_如何学Cgif|GIF|bmp|BMP|png|PNG].*) /$1 [QSA,L]
RewriteRule ^/(.*)$ /index.php?url=$1 [QSA,L]
</VirtualHost>
I am trying to exclude my Flash crossdomain.xml file from getting rewritten. Thanks!
Just put this rule on top of yours:
RewriteRule ^/crossdomain\.xml$ - [L]
精彩评论