Results 1 to 3 of 3

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

  1. #1
    Join Date
    Apr 2006
    Beans
    2,488

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

    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

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    15,250
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

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

    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.

  3. #3
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    13,657
    Distro
    Kubuntu 18.04 Bionic Beaver

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

    You could also specify domainB as a ServerAlias in Apache.

    Code:
    <VirtualHost *:80>
    ServerName     www.domainA.com
    ServerAlias    www.domainB.com
    
    [stuff]
    </VirtualHost>
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •