Should Wp-content, Wp-includes & Wp-admin be blocked via robots.txt?

Discussion in 'Search Engine Optimization' started by TransPersonal, Oct 16, 2009.

  1. #1
    Hi guys,

    I was wondering what your thoughts are about blocking search engines from indexing these three wordpress directories. Would it help, harm or not effect search engine ranking?

    I figure it can't hurt since the actual site content is inside the database, but what do you guys think?
     
    TransPersonal, Oct 16, 2009 IP
  2. mjay68

    mjay68 Guest

    Messages:
    21
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It shouldn't matter. Wordpress uses the canonical link tag, which means wordpress properly manages duplicate content.
     
    mjay68, Oct 16, 2009 IP
  3. TransPersonal

    TransPersonal Peon

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    wrong post.
     
    TransPersonal, Oct 25, 2009 IP
  4. Feathers

    Feathers Peon

    Messages:
    209
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yes, yes and yes. Below is a proper robots.txt format for a Wordpress installation;

    
    User-agent: *
    Disallow: /*?
    Disallow: /*.php$
    Disallow: /*.inc$
    Disallow: /*.css$
    Disallow: /wp-login.php
    Disallow: /wp-login.php?*
    Disallow: */feed/
    Disallow: */trackback/
    Disallow: /comments
    Disallow: */comments
    Disallow: /category/
    Disallow: /tag/
    Disallow: /page/
    Disallow: /wp-admin/
    Disallow: /wp-content/plugins
    Disallow: /wp-content/cache
    Disallow: /wp-content/themes
    Disallow: /wp-includes/
    
    Code (markup):
    Now, this is my optimal SEO related robots.txt I use for Wordpress that blocks all non-essential files and directories while preventing duplicate content issues.
     
    Feathers, Oct 25, 2009 IP
  5. dcristo

    dcristo Illustrious Member

    Messages:
    19,796
    Likes Received:
    1,201
    Best Answers:
    7
    Trophy Points:
    470
    Articles:
    5
    #5
    It's not really an issue if you don't link to those pages.

    If you link to the wp login page for convenience, then include it in robots.txt, but I prefer to just not link to the page on the blog.
     
    dcristo, Oct 25, 2009 IP
  6. simply-seo

    simply-seo Peon

    Messages:
    414
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks for that Robots.txt code.
     
    simply-seo, Oct 25, 2009 IP