hups Posted May 12, 2011 Share Posted May 12, 2011 Hello everyone.I have a main website and set up a subdomain of this which is http://tackleshop.carp-on.comHow and what code would I need to put in to the htaccess file so that if someone typed www.tackleshop.carp-on.com in to the url address bar it would auto redirect to the subdomain http://tackleshop.carp-on.com.Many thanksRob Link to comment Share on other sites More sharing options...
WoW06 Posted December 3, 2012 Share Posted December 3, 2012 Hello, Same problem here, how to solve ? Regards, Link to comment Share on other sites More sharing options...
WoW06 Posted December 15, 2012 Share Posted December 15, 2012 Up Link to comment Share on other sites More sharing options...
El Patron Posted December 15, 2012 Share Posted December 15, 2012 #Force non-www: RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.yourdomain\.com [NC] RewriteRule ^(.*)$ http://yourdomain.com/$1 [L,R=301] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now