PDA

View Full Version : What will be the easy way to re-direct websites visits?



satimis
December 7th, 2018, 12:11 PM
Hi all,

What will be the easy way to re-direct websites visits?

I'm hosting my websites on Godaddy. I'm prepared moving all my subdomain websites on domain-A to domain-B with the same names. What will be the easy way to direct all visits to subdomain websites on domain-A to subdomain websites on domain-B i.e when visitors click subdomain websites on domain-A they will be automatically re-directed to subdomain websites on domain-B?

Thanks

Regards
satimis

TheFu
December 7th, 2018, 01:16 PM
301 permanently moved
https://css-tricks.com/snippets/htaccess/301-redirects/
Apache settings can do it too, but I don't know if you have access to those at godaddy.

SeijiSensei
December 7th, 2018, 05:57 PM
You could also specify domainB as a ServerAlias in Apache.



<VirtualHost *:80>
ServerName www.domainA.com
ServerAlias www.domainB.com

[stuff]
</VirtualHost>