1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Main site redirects to subdomain. How to stop indexing of subdomain?

Discussion in 'robots.txt' started by jagan123, Jan 11, 2011.

  1. #1
    Hello,

    I need some help or suggestion with the indexing of my website.

    My website is something like mybusiness . com
    I have this redirected to a subdomain of the platform I use.
    Something like mybusiness.someplatform .com

    The problem is both mybusiness .com and mybusiness.someplatform .com are getting indexed. I do not want this sub domain to be indexed.
    If I block it at the robots.txt does this effect my main url crawling too? Please help.

    Thanks
     
    jagan123, Jan 11, 2011 IP
  2. Natcoweb

    Natcoweb Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hello,

    add robots.txt file to the subdomain

    User-agent: *
    Disallow: /
     
    Last edited: Jan 14, 2011
    Natcoweb, Jan 14, 2011 IP
  3. fsdnetwork

    fsdnetwork Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You should use wilcards to do that, so on the root of the main domain add it to your robots.txt file

    Disallow: /*&subdomain.domain.com

    hope it help
     
    fsdnetwork, Feb 9, 2011 IP
  4. gred

    gred Member

    Messages:
    30
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #4
    delete pages of your site at Google Webmaster
     
    gred, Feb 14, 2011 IP
  5. manish.chauhan

    manish.chauhan Well-Known Member

    Messages:
    1,682
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    110
    #5
    Hi Jagan, if I am correct you have redirected your main domain to your subdomain due to some specific reasons and if you have done it, it doesn't make any sense to block the sub domain from search engines, What you should do, use following robots.txt for your main domain:

    user-agent:*
    Disallow: /

    once you are done with it, remove all the indexed URL of main domain from Google Webmaster tools. Now your all main domain URLs are out of the index and now you can use your subdomain


     
    manish.chauhan, Feb 17, 2011 IP