i have my forums at http://forums.domain.com/ I did a 301 redirect for http://www.domain.com/forums/ to the above url ^ I just tried typing in www.forums.domain.com just to see if it would work (it doesnt work on dp) and it worked... How can I stop this and make it so that the www version of the sudomain redirects to http://forums.domain.com/ ?
Goto your domain control panel and create a cname alias "www.forums" pointing to "forums.domain.com" without quotes of course.
Thanks Guttu, but the below code seemed to do the trick for me. I put this in my .htaccess in my /forums directory to remove the www in www.forums.domain.com just in case anyone decides to type in that address, or link to it like that. RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.+)$ RewriteRule ^(.*)$ http://%1/$1 [R=301,L] Code (markup):