4 Wordpress File's Link To Be Blocked

Discussion in 'Site & Server Administration' started by AidenChong, May 16, 2008.

  1. #1
    Hi there,

    When I do a search using the code "site:example.com" on my domain, I found several links which seems to be not appropriate for Google to index it, according to the one who reviewed my request of reviewing it.

    That particular person has suggested me to block some files' link in my wordpress blog on my domain.

    Examples of those links :
    1) http://www.example.com/blog/feed
    2) http://www.example.com/blog/wp-login.php
    3) http://www.example.com/wp-login.php?action=lostpassword
    4) http://www.example.com/blog/wp-login.php?action=register


    How should I block those links from being indexed by Google or any other robots ?

    I do know how to block a folder from being index, but I do not know how to block a link from being indexed.

    Thanks in advance for your help.
     
    AidenChong, May 16, 2008 IP
  2. relixx

    relixx Active Member

    Messages:
    946
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    70
    #2
    Robots.txt file.

    User-agent: *
    Disallow: /blog/feed
    Disallow: /blog/wp-login.php
    Disallow: /wp-login.php


    The cool part is that URIs like /wp-login.php?action=lostpassword will be blocked automatically as they contain /wp-login.php
     
    relixx, May 20, 2008 IP
  3. AidenChong

    AidenChong Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks relixx ! You are my life saver ! Thank you so much for that:)
     
    AidenChong, May 21, 2008 IP
  4. manish.chauhan

    manish.chauhan Well-Known Member

    Messages:
    1,682
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    110
    #4
    Also remove your indexed urls from google index by using Google webmaster tools...:)
     
    manish.chauhan, May 21, 2008 IP
  5. relixx

    relixx Active Member

    Messages:
    946
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    70
    #5
    No problem :)
     
    relixx, May 21, 2008 IP
  6. AidenChong

    AidenChong Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks for reminding, almost forget about that ! :p
     
    AidenChong, May 23, 2008 IP