I’m very new to the concept of rewrites and have applied the following I found on the internet to help remove index.php from my URLs:
#StatusInquiry ON RemoteOk
#RewriteLog c:\temp\iirf
#RewriteLogLevel 2
#Change the following to your renamed system folder path:
RewriteRule ^/system/(.*)$ /system/$1 [I,L]
#Add rules for folders you want to accept without rewriting:
RewriteRule ^/images/(.*)$ /images/$1 [I,L]
RewriteRule ^/styles/(.*)$ /styles/$1 [I,L]
RewriteRule ^/themes/(.*)$ /themes/$1 [I,L]
RewriteRule ^/-/(.*)$ /-/$1 [I,L]
RewriteRule ^/FPO/(.*)$ /FPO/$1 [I,L]
RewriteRule ^/documents/(.*)$ /documents/$1 [I,L]
#This allows querystring to be added to the url (like {path=logout} )
RewriteRule /(.*)\?(.*)$ /index.php\?q=$1&$2 [I,L]
#This removes index.php? from the urls
RewriteRule ^/(.*)$ /index.php?/$1 [I,L]
What I can’t figure out is how to ignore the rewrite for specific files. Ex: A google-site-authentication file that needs to be placed in the root directory (googlexxxxxxxxxxxx.html) or a Bing-site-authentication file (BingSiteAuth.xml.
I have these files in my root folder, but typing in the url takes me to my EE site’s homepage.
please help!
Lee
someone told me to try this, but it still just goes to the homepage
RewriteRule ^/google.*.html$ /$1 [I,L]