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.

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.
     
    GaryReyn likes this.
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page