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.

Subdomain is redirecting to domain

Discussion in 'General Discussion' started by benito, Feb 23, 2008.

  1. benito

    benito Well-Known Member

    Joined:
    Jan 8, 2004
    Messages:
    296
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Mar del Plata - Argentina
    I have several servers, all with the DNS servers in sync.

    In one server have the site "domain.com" and on other server i have created an account only for for "blog.domain.com".

    When i type blog.domain.com in the browser i got redirected to "domain.com" instead of seeing the files on "blog.domain.com", why is that?

    I got the latest stable cpanel and apache 2.2
     
  2. johnmigen

    johnmigen Active Member

    Joined:
    Jan 19, 2008
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Are you refering to two different Server? If so, are the domain.com that you refer to same domain name?

    Are your both server doing a DNS sync?

    Did you create a A record for blog to point to your other server?
     
  3. benito

    benito Well-Known Member

    Joined:
    Jan 8, 2004
    Messages:
    296
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Mar del Plata - Argentina
    The both sites are in two different server, domain.com in one and blog.domain.com in the other. The zones are ok, domain.com resolve to one ip and blog.domain.com resolve to the other server ip.

    But when i go to blog.domain.com i get redirected to domain.com

    note: no .htaccess redirects on blog.domain.com
     
  4. johnmigen

    johnmigen Active Member

    Joined:
    Jan 19, 2008
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Let me speculate a little, did you add a A record to www.blog pointing to blog's IP?

    And when you are accessing the site, try http://blog.domain.com/ note the / behind
     
Loading...

Share This Page