How To Redirect a Domain Without Changing The URL

How To Redirect a Domain Without Changing The URL

A domain can be forwarded to another domain to share the same content without having to update the new domain set up. The domain name remains in the task bar of the web address and so your visitors cant see the domain forwarding.

This is enabled by the modification of the .htaccess file by inserting the following code

(RewriteCond % {HTTP_HOST} ^DomainA.com,

RewriteRule ^(.*) http://Domain.com/$1 [P]).

Check your hidden files on the settings.With these changes of code, your first domain content will always be read on domain B without having to use a redirect. This however must be done on the same servers.

Note that some search engines may decrease your SEO when they sense you have multiple sites and therefore in such case you may consider using a 301 redirect.

 

Was this article helpful?

Related Articles

Leave A Comment?