The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    817
    Likes Received:
    22
    Trophy Points:
    18
    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.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,814
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page