wordpress archives

Discussion in 'PHP' started by plusd, Jun 30, 2008.

  1. #1
    hello...how can i take out from wordpress the part where the script is creating archives like http://www.exampledomain.com/2006/12

    i don't want this because is creating duplicated content
     
    plusd, Jun 30, 2008 IP
  2. thundercow

    thundercow Well-Known Member

    Messages:
    246
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    108
    #2
    You don't need to tell wordpress not to generate it, just add an entry to the robots.txt file to have the search engines not index it. As Dan Schultz says, any legitimate spider (i.e., any search engine you care about being in) is going to obey your robots.txt file.

    The lines in your robots.txt file would be:
    Disallow: /2007/
    Disallow: /2008/
    Disallow: /2009/

    --But the larger question is whether you should do it. There is a lot of stuff on the internet about robots.txt usage in wordpress, look for Dan Schultz' post on optimizing wordpress for SEO, and that will get you started.
     
    thundercow, Jul 18, 2008 IP