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!

How to redirect user from one domain which does not have any hosting to another domain which has one

Discussion in 'General Discussion' started by yrshaikh, Feb 28, 2014.

  1. yrshaikh

    yrshaikh Registered

    Joined:
    Feb 28, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I have a domain1.com with - removed - and a hosting plan with it. I recently purchased another domain2.com from a seller on godaddy.com. That domain is with goDaddy.com.

    I want to redirect all request from the "domain1.com" to "domain2.com". So in godaddy there was this option called "Forwarding" where i could enter my destination domain "domain2.com" and select 301 or 302. I selected 302. And now whenever i hit domain2.com in my browser url it gets redirected to domain1.com

    However when i enter /http://www.domain2.com (with the /www.) it does not redirect, it opens up the web page which was configured before i purchased the domain from the seller.

    What should I change ?
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    834
    Likes Received:
    28
    Trophy Points:
    178
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    Re: How to redirect user from one domain which does not have any hosting to another domain which has

    I don't know how Godaddy's forwarding works, but perhaps when you forward domain.com, it ONLY forwards domain.com, not any subdomain of it. www.domain.com is actually a subdomain. So you'll probably need to forward that too, but honestly, it would be best if you just point the nameservers to your hosting provider and add the domain in cPanel as a parked domain, if you're able to do so.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Re: How to redirect user from one domain which does not have any hosting to another domain which has

    Hello :)

    Yes, ideally, you should simply update the name servers for the additional domain name to ones for the cPanel server. Then, add the domain name as a "Parked" or "Addon" domain name in the cPanel interface, depending on what you want to see in the address bar in your browser.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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