Problems in robots.txt

Discussion in 'WordPress' started by nasif123, Jul 31, 2010.

  1. #1
    I have included the following in my robots.txt file:

    User-Agent: *
    Disallow: /wp-admin/
    Disallow: /wp-includes/
    Disallow: /wp-content/
    Disallow: /wp-

    I have images in my site so my question is will google index my images ? If they don't then what line should I put in robots.txt file ?
     
    nasif123, Jul 31, 2010 IP
  2. zomex

    zomex Well-Known Member

    Messages:
    194
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    135
    #2
    Hello,

    You're either going to have to use:

    or

    I'm not to sure which one is the best to use. Keep in mind that if your images are already indexed then this method is not going to remove them.

    Regards,
    Jack
     
    zomex, Jul 31, 2010 IP
  3. nasif123

    nasif123 Member

    Messages:
    55
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    Forgot to mention that I want google to index my images... So what line should I put in robots.txt for letting google to index all the images ?
     
    nasif123, Jul 31, 2010 IP
  4. zomex

    zomex Well-Known Member

    Messages:
    194
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    135
    #4
    Hello,

    Naturally Google will index what ever they can by default. However, if you would like to know for sure that Google bot has access add the following to your robots.txt file:

    Jack
     
    zomex, Jul 31, 2010 IP