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!

nonexistantsubdomain.domain.com -> domain.com

Discussion in 'General Discussion' started by AtomixNetwork, Dec 15, 2004.

  1. AtomixNetwork

    AtomixNetwork Member

    Joined:
    Nov 27, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    151
    Hi there,

    I am trying to make it so that if someone puts in something like abc123.domain.com (which is non existant) to redirect to domain.com.

    I've tried making it:

    * IN CNAME domain.com (in the edit a DNS Zone [WHM]).. it sort of works.. but when i go to somethingnonexistant.domain.com, it displays a CPanel no site configured at this address page.

    I've seen http://forum.powweb.com/showthread.php?t=2461 (related)

    Doesn't seem to work..

    Any help would be appreciated :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    168
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    I've had this working, I think from memory you have to make sure the site has an IP and then it works. The problem is that the virtual container isn't working, and at the time the only fix seemed to be giving the site it's own IP, although I'm sure there are other ways to make the virtual host bit work (in httpd.conf).
     
    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