Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Aug 2001
    Posts
    111

    Default Redirecting a domain to a subdir

    Can someone tell me how to do the following? WITHOUT having to add the pointed domain as a new account on the server, then redirecting it through htaccess or other miscellaneous means..

    I want the domain name to point to a specific directory within
    the public_html folder. Not the main public_html folder itself..

    I want to know how to point a domain, lets call it, www.abc.com
    into an already existing account called www.diatone.net. But
    I want www.abc.com to not direct to www.diatone.net, but
    www.diatone.net/some/other/dir

    Thanks so much.

  2. #2
    Member
    Join Date
    Aug 2001
    Location
    Fremont CA
    Posts
    537

    Default

    create a dns zone with default ip --- domain2.com

    add a virtual entry in the httpd.conf file to point the domain2.com to the subdirectory

    anyone that goes to domain2.com will then see domain2.com in their address bar and properties etc...

  3. #3
    Member
    Join Date
    Aug 2001
    Posts
    111

    Default

    Sorry to be stupid. But.. How. What do I need to write in my httpd.conf specifically? Also, in WHM, I alter the dns zone for the existing domain? Or create a new one? Thanks for the help..

  4. #4
    Member
    Join Date
    Sep 2001
    Posts
    189

    Default

    1) create subdomain via CPANEL
    2) Park new domain on top of subdomain
    3) If you want to have mail redirection for domain pinters:

    a) create file &domain.com& (:* main_user@maindomain.com) in /etc/valiases
    b) add new domain to /etc/localdomains
    c) add (new_domain.com :main_user_name) to /etc/userdomains
    d) send test mail to new domain
    Alex Andreyev,
    http://www.WHost.INFO - NEW web hosting directory.

  5. #5
    bdraco
    Guest

    Default

    Is there a feature req open for this yet ?

  6. #6
    cPanel Partner NOC This forum account has been confirmed by cPanel staff to represent a vendor.cPanel Partner NOC Badge
    Join Date
    Nov 2001
    Location
    San Clemente, Ca
    Posts
    700

    Default

    Nick, Yep, i put in a request for Virtual Hosts the begging or last week cant remember.

    http://web.cpanel.net/bugzilla/show_bug.cgi?id=242

  7. #7
    Member
    Join Date
    Aug 2001
    Posts
    68

    Default

    Yea, good idea!

    -Kyle
    -Kyle Reilly

  8. #8
    Member
    Join Date
    Aug 2001
    Posts
    81

    Default

    I entered one for this also- well, added on to an existing one, anyway:

    http://web.cpanel.net/bugzilla/show_bug.cgi?id=47

    Hopefully this counts, since they are related
    InterSurge Internet
    http://www.intersurge.com

Similar Threads & Tags
Similar threads

  1. Redirecting Sub Domain To Another Account
    By jeverd01 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 02-23-2010, 06:18 PM
  2. Redirecting a domain
    By rkm11 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-29-2008, 09:34 AM
  3. redirecting a domain to a subfolder
    By 1link4it in forum cPanel and WHM Discussions
    Replies: 18
    Last Post: 03-17-2004, 08:54 AM
  4. Redirecting Domain
    By Coffeymate in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-12-2003, 10:36 AM
  5. domain/subdir/ works domain/subdir not
    By NNNils in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-04-2003, 04:52 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube