Forum Moderators: phranque
I am using the following in my htaccess file to change requests from domain.com to www.domain.com:-
RewriteCond %{HTTP_HOST}!^www\.domain\.co.uk
RewriteRule (.*) [domain.co.uk...] [R=301,L]
And this works fine for the selected domain.
However I have a seperate domain lets call it newdomain.co.uk that points to a directory in the redirected domain - www.domain.co.uk/new
Before I added the htaccess code requests for newdomain.co.uk worked fine and the url in the browser was newdomain.co.uk - now requests for (www.)newdomain.co.uk gets redirected to www.domain.co.uk/new
Anyone know where I am going wrong?
Funny thing is I have also got another domain pointing to www.domain.co.uk/newer and this has not been effected.