RewriteEngine On # FORCE PHP5 HOST RewriteCond %{HTTP_HOST} ^[^.]+\.cat\.fr-wd\.com$ RewriteRule ^(.+) %{HTTP_HOST}/$1 [C] RewriteRule ^([^.]+)\.cat\.fr-wd\.com/(.*) http://$1.kitten.fr-wd.com/support_ticket_system/branches/sts2/www/$2 [L,R=301] ################################################################################# # frontierwebdev.com => www.frontierwebdev.com RewriteCond %{HTTP_HOST} ^frontierwebdev\.com [NC] RewriteCond %{HTTP_HOST} !^$ RewriteRule ^/(.*)$ http://www.frontierwebdev.com/$1 [R=301,L] ################################################################################# #redirect from /support/adm to /support, disregard all trailing stuff, since all url structure is changed RewriteRule ^adm[/?](.*)$ http://www.frontierwebdev.com/support/? [R=301,L] #redirect from /support/account\.htm(l) to /support RewriteRule ^account\.html? http://www.frontierwebdev.com/support/? [R=301,L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-l RewriteCond %{REQUEST_FILENAME} !^(.*)/((img)|(js)|(css))/(.*)$ RewriteRule ^(.*)$ index.php?_path=$1 [QSA] DirectoryIndex index.php Options FollowSymLinks