RewriteEngine on
# Index Redirect for /index.php with no parameters
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$
http://www.capecabinetdepot.com/? [R=301,L]
# Index Redirect for /(index.php)?main_page=index(&cPath=<blank>) URL
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(index\.php)?\?main_page=index(&cPath=)?\ HTTP/
RewriteRule ^(index\.php)?$
http://www.capecabinetdepot.com/? [R=301,L]
RewriteCond %{HTTP_HOST} ^ecabinetpros.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.ecabinetpros.com$
RewriteRule ^/?$ "http\:\/\/www\.capecabinetdepot\.com\/" [R=301,L]
# Canonical Redirect non-blank, non-www and/or appended port number to www [EXCLUDE /admin requests]
RewriteCond %{HTTP_HOST} !^(www\.ecabinetpro\.com)?$
RewriteCond %{REQUEST_URI} !^/admin [NC]
RewriteRule (.*)
http://www.capecabinetdepot.com/$1 [R=301,L]
#Error Page
#ErrorDocument 403 /403.shtml
ErrorDocument 404 /404.shtml
#ErrorDocument 401 /401.shtml
#ErrorDocument 400 /400.shtml
#ErrorDocument 500 /500.shtml
AddLanguage en .en # English
# RewriteCond %{HTTP_HOST} ^ecabinetpro.com$ [OR]
# RewriteCond %{HTTP_HOST} ^www.ecabinetpro.com$
# RewriteRule ^/?$ "http\:\/\/www\.capecabinetdepot\.com\/" [R=301,L]