Exclude wp-admin page from google search

Discussion in 'robots.txt' started by init2, Apr 23, 2009.

  1. #1
    Hi all,

    My site started to get index in google.

    1) My www.example.com\wp-admin page of wordpress is also showing up in the indexed page.

    2) and my i have made sitemap file in my html directory and the gz extension (zip file ) url is also indexed in the google search.

    i want to exclude these two (1) (2).

    Please help me out. Please advice with the content to include in the file.

    All types help are appreciated.

    Regards,
    Init2
     
    init2, Apr 23, 2009 IP
  2. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #2
    Just add following in your robots.txt file:

    User-agent: *
    Disallow: /wp-admin
    Disallow: /any_filename_which_you_want_to_block
     
    kailash, Apr 24, 2009 IP
  3. linkdealer

    linkdealer Active Member

    Messages:
    138
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    90
    #3
    Exactly the same, I have done in my blog
     
    linkdealer, Jun 9, 2009 IP