.htaccess rewrite , parked domain on another site to read the proper domain name

Posted by Stefano on Pro Webmasters See other posts from Pro Webmasters or by Stefano
Published on 2012-06-11T17:57:40Z Indexed on 2012/06/11 22:47 UTC
Read the original article Hit count: 309

Filed under:
|

I have a parked domain ¨mysite.co.uk¨ on another domain name webspace in a folder and need to rewrite the mysite.co.uk domain name in the browser URL as it currently shows the Other domain name while browsing and i need it to read mysite.co.uk.

When parking the domain the isp automatically added this which works although displays anotherdomain name.

RewriteCond %{HTTP_HOST} ^mysite.co.uk$ [OR] RewriteCond %{HTTP_HOST} ^www.mysite.co.uk$ RewriteRule ^/?$ "http\://www.otherdomain.eu/myfolder" [R=301,L]

© Pro Webmasters or respective owner

Related posts about htaccess

Related posts about rewrite