Tag Info

New answers tagged


Any time you redirect you are telling the browser to change the URL as it appears to the user. There are three approaches you could take for this problem. Serve both domains out of the same folder. This will mean that both domains have the same (duplicate) content. This solution works when both domains are served from the same server. You just need ...


I've had the same problem, and the below solved it for me. Try it out! (make sure you replace mydomain.com in the third line with your own) RewriteEngine On RewriteCond %{HTTP_HOST} !^$ RewriteCond %{HTTP_HOST} ^mydomain.com [NC] RewriteCond %{HTTPS}s ^on(s)| RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

Top 50 recent answers are included