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!

hostname redirection to website

Discussion in 'General Discussion' started by GaryReyn, Mar 8, 2016.

  1. GaryReyn

    GaryReyn Registered

    Joined:
    Mar 3, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    South Africa
    cPanel Access Level:
    Root Administrator
    Hey guys
    I would like to know how I could redirect our hostname URL to our website so instead of
    hostname.website.com showing the default landing page it should redirect to website.com without effecting the default landing page of our clients.
     
  2. LostNerd

    LostNerd Well-Known Member

    Joined:
    Mar 12, 2014
    Messages:
    258
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Hastings, East Sussex, UK
    cPanel Access Level:
    Root Administrator
    Twitter:
    Under

    Code:
    /usr/local/apache/htdocs
    Add a .htaccess file with a redirect. That'll do the trick.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    GaryReyn likes this.
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,809
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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