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.

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:
    1
    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:
    1
    You should be able to setup a redirect to a specific directory.
     
  3. 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
    Edit the domain's document root in /var/cpanel/userdata/$user/$domain, then run /scripts/rebuildhttpconf and restart Apache.
     
Loading...

Share This Page