Hi,
I'm already using my .htaccess for a few things. It's set to block an image scraper, to redirect from my old domain ( landscapephoto.us ) to my new domain ( forrestcroce.com ), and to keep people away from www subdomains. I just started a forum, and need to redirect from forrestcroce.com\forums to forums.forrestcroce.com.
I managed to get everything but the last requirement to work; it was a lot easier when I didn't allow any subdomains. How would I handle this using mod rewrite? I'm using the code below, but when I add ^forrestcroce.com\forums as a rewrite condition, it doesn't work, and neither does \.com\forums?
RewriteCond %{HTTP_HOST} ^ www.forrestcroce\.com [NC]
RewriteRule ^(.*) http://forrestcroce.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^landscapephoto\.us [NC]
RewriteRule ^(.*) http://forrestcroce.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^ www.landscapephoto\.us [NC]
RewriteRule ^(.*) http://forrestcroce.com/$1 [R=301,L]
|