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.

How do I Point a DOmain to a Sub-Directory?

Discussion in 'General Discussion' started by oSM, Oct 26, 2001.

  1. oSM

    oSM Well-Known Member

    Joined:
    Aug 18, 2001
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    Sorry guys,
    Just wanted to ask you for another favor.. How do I go about pointing a domain name to a sub-directory or sub-domain?
    Also, how would I re-direct mails to the sub-domain or sub-directory?

    THANKS! ;)
     
  2. teck

    teck Well-Known Member

    Joined:
    Aug 10, 2001
    Messages:
    164
    Likes Received:
    0
    Trophy Points:
    16
    You can just park the domain on top of the subdomain. This can be done in WHM. I\'m not sure if mail will still work though.
     
  3. AlaskanWolf

    AlaskanWolf Well-Known Member

    Joined:
    Aug 11, 2001
    Messages:
    537
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Fremont CA
    Fastest way to do it is to

    1. go to WHM, click on SETUP DOMAIN FORWARDING

    it will say

    The domain forwarder is currently using the ip address YOUR_IP_HERE. All domain that you want to be forwarded should be pointing at this ip.

    2. Add a dns zone for the domain you want forwarded with tie ip above

    3. go back to Domain Forwarding and in the redirection map setup

    www.www-newdomain.net ---> http://primarydomain.com/directory/

    www-newdomain.net ---> http://primarydomain.com/directory/
     
Loading...

Share This Page