Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Redirection between domains

Discussion in 'General Discussion' started by Shivanand, Jul 25, 2018.

  1. Shivanand

    Shivanand Registered

    Joined:
    Jul 25, 2018
    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Australia
    cPanel Access Level:
    Website Owner
    Hi there,

    I have a website running on domain 1. We decided to rebrand and bought domain 2 with the new brand name. While we were working on updating the website to match the new brand we had 301 redirect through the domain service provider on domain2.
    We removed the 301 redirect, updated the A Name and then updated the nameservers to the hosting details on domain 2 where the website is hosted.
    However, now every time we type www.domain2.com it automatically redirects to www.domain1.com.
    We are unable to locate what is causing this redirection. Is is that domain1 is primary and domain2 is secondary and this is causing the redirect?
    Or are there some rules in htaccess which causes the redirection?

    Sorry but I am not really knowledgeable about this stuff and would really help any advice.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Shivanand,

    First, check the .htaccess file in the document root of the second domain name and in the public_html directory itself to verify if any custom Mod_Rewrite rules are enabled that could potentially lead to the redirect. If that's not the culprit, check the configuration of any scripts installed as part of the second domain's website to make sure there are no redirects configured in the script itself.

    Let me know if that helps.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Shivanand

    Shivanand Registered

    Joined:
    Jul 25, 2018
    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Australia
    cPanel Access Level:
    Website Owner
    HI Michael,

    Thank you for your prompt reply. I have passed on the information to the agency handling the website. I will update you as soon as I hear from them.

    Kind Regards,
    Shivanand
     
    cPanelMichael likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice