Mod_rewrite everything except root

RewriteCond %{REQUEST_URI} !^/index.(html|php)$

RewriteCond %{REQUEST_URI} !^/$

RewriteRule ^(.*)$ http://www.mydomain.com/$1

 

Leave a Reply

Your email address will not be published. Required fields are marked *