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!

Getting a domain to resolve to the right directory

Discussion in 'General Discussion' started by royhunters, Jul 19, 2010.

  1. royhunters

    royhunters Registered

    Joined:
    Jul 17, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    51
    I am sure this is an easy one... My domain is resolving to the public_html directory and I need it to resolve to a specific directory in the public_html directory...

    Using Cpanel and WHM of course, how do I accomplish this?

    Thank you in advance for your assistance.
     
  2. Newbusinesshost

    Joined:
    May 30, 2010
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    51
    You should be able to setup a redirect to a specific directory.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    830
    Likes Received:
    26
    Trophy Points:
    178
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    Edit the domain's document root in /var/cpanel/userdata/$user/$domain, then run /scripts/rebuildhttpconf and restart Apache.
     
    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