Redirect Subdomain

Discussion in 'Search Engine Optimization' started by ankushkohli, Mar 8, 2011.

  1. #1
    Guys Please read carefully!

    2 subdomains abc.domain.com and ab.abc.domain.com are running on my host, which are basically creating duplicate pages of domain.com.

    According to my host, I'm not able to ab.abc.domain.com but still everyone can access these subdomains. Google is indexing all these URL's and hence showing duplicate pages.

    Can anyone guide me, how to redirect both subdomains to main domain?

    Thanks in advance!
     
    ankushkohli, Mar 8, 2011 IP
  2. tjsocr22

    tjsocr22 Active Member

    Messages:
    1,251
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    80
    #2
    tjsocr22, Mar 8, 2011 IP
  3. WC Rocket

    WC Rocket Member

    Messages:
    120
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    48
    #3
    If you have no control over the sub domains, use the canonical meta tag to point to the original source. Google will see this and sort things out themselves.
     
    WC Rocket, Mar 8, 2011 IP
  4. Excel 8

    Excel 8 Guest

    Messages:
    1,231
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    are you good in using htaccess??? does those 2 sub domains are redirecting properly??? why not point the redirect to the main page while fixing the duplicate issues on the 2 subdomain.
     
    Excel 8, Mar 8, 2011 IP
  5. ankushkohli

    ankushkohli Peon

    Messages:
    275
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    tjsocr22, thanks for your reply! I tied to delete them but unable to remove. In-fact hosting people are not able to remove those.
     
    ankushkohli, Mar 8, 2011 IP
  6. ankushkohli

    ankushkohli Peon

    Messages:
    275
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    It could be a wise suggestion but don't you think so canonical meta tag will slow down the page loading time?
     
    ankushkohli, Mar 8, 2011 IP
  7. ankushkohli

    ankushkohli Peon

    Messages:
    275
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I've already tried lots of htaccess code but unable to redirect them. Can you suggest any redirect code?
     
    ankushkohli, Mar 8, 2011 IP