Hi, I have a portal located at my home directory, I want to kee p it there. I managed to redirect using mod_rewrite when someone accesses the NON-WWW version of my domain. but it keep in the root directory if someone prefixes the www Heres the code I am using RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} ^itsaphotog\.com$ [NC] RewriteRule (.*) http://www.itsaphotog.com/home/ [R=301,L] Code (markup):
Just a slight modification : RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} ^(www\.)?itsaphotog\.com$ [NC] RewriteRule (.*) http://www.itsaphotog.com/home/ [R=301,L] Code (markup):