#restore canonical domain RewriteEngine on RewriteCond %{HTTP_HOST} ^www.(.*)$ RewriteRule http://temcodirect.com{REQUEST_URI} [R=301,L] # DirectoryIndex index.php index.html /_/dispatcher.php RewriteCond %{REQUEST_URI} !(^|/)_/ RewriteCond %{REQUEST_URI} !(^|/)favicon.ico RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* _/dispatcher.php?_flow_not_index_ [QSA,L] # those could be Directory / Files combo if put in httpd.conf RewriteCond %{REQUEST_URI} ((^|/)_/temp/)|(^.*\.[a-z]+.php($|/.*$)) RewriteRule .* - [F,L] #