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!

Redirect a Domain to a folder

Discussion in 'General Discussion' started by abuhome, Aug 1, 2008.

  1. abuhome

    abuhome Registered

    Joined:
    Jul 23, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
  2. linux7802

    linux7802 Well-Known Member

    Joined:
    Dec 14, 2007
    Messages:
    232
    Likes Received:
    1
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Solution

    In that case first you need to remove redirect from your cPanel >> Redirects and then login into your server and change the document root for your domain in httpd.conf

    From DocumentRoot /home/username/public_html to DocumentRoot /home/username/public_html/folder

    If you are not having any access to server then contact your hosting provider and ask them to change the above DocumentRoot path for your domain.:)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. abuhome

    abuhome Registered

    Joined:
    Jul 23, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    thank you for your answer. i need to change the httpd.conf from the domain correct ? and not the other subdomains ? can i still then access folders after the url ? such yourdomain.com/folder redirects to ../public_html/test ?
     
  4. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    68
    Yes..you can still access the folders (sub-domains) after your domain.
     
    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