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.

All subdomains are redirecting to main domain

Discussion in 'General Discussion' started by Acerman, Apr 4, 2008.

  1. Acerman

    Acerman Registered

    Joined:
    Mar 8, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I've been trying to figure this out for quite some time but cannot figure it out. Recently a domain was migrated to another server. Before migration, the third level domains were working flawlessly. but now after the migration, all third level domains are redirecting to the second level domain.

    For example, if I visit http://sub.domain.com I am redirected to http://www.domain.com. If I visit http://newsletter.domain.com/hello.php I am redirected to http://www.domain.com/hello.php

    The last thing I tried to do was create a test subdomain called "test" to see if newly created subdomains would work. After creating that subdomain, all requests for subdomains are redirected to http://www.domain.com/test
    For example, if I visit http://sub.domain.com I am redirected to http://www.domain.com/test and if I visit http://forums.domain.com/search.php I am redirected to http://www.domain.com/test/search.php

    Everything in the zone file looks how it should be and there are no problems with the .htaccess file.

    Any help is greatly appreciated.
     
Loading...

Share This Page