1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XML Sitemap for Wordpress

Discussion in 'Blogging' started by drumltd, Nov 3, 2010.

  1. drumltd

    drumltd Regular Member

    Joined:
    Dec 4, 2008
    Messages:
    467
    Likes Received:
    13
    Can anybody recommend a decent sitemap generator for Wordpress?

    Ive tried Google XML Sitemap Plugin but that generates a new sitemap everytime a new map everytime a new post is added, and on busy sites, this is killing the server.

    So Then I tried XML Sitemap Feed Plugin but this can't handle very large sites, and just produces a blank corupt file.

    Anybody recommend one that produces dynamic content only when requested, can handle large WP systems, and is preferably compatible with caching?
     
  2. vloza

    vloza Registered Member

    Joined:
    Apr 7, 2010
    Messages:
    74
    Likes Received:
    49
    I Use sitemap index
    Code:
    wordpress.org/extend/plugins/sitemap-index/
    Very simple to use and doesn't generate an XML file, is a php file that generates the sitemap on request. I use .htaccess to map the sitemap.xml to the php file.
     
    • Thanks Thanks x 1
  3. drumltd

    drumltd Regular Member

    Joined:
    Dec 4, 2008
    Messages:
    467
    Likes Received:
    13
    Thanks, Just what I was looking for.
     
  4. drumltd

    drumltd Regular Member

    Joined:
    Dec 4, 2008
    Messages:
    467
    Likes Received:
    13
    Although I also customized the php code so that it produces, links based around \sitemap.xml rather than deep in the wp-content\plugins director where it's blocked by robots.txt.

    Quite a simple fix, I'll just have to remember to do it again, if it ever gets updated.
     
  5. vloza

    vloza Registered Member

    Joined:
    Apr 7, 2010
    Messages:
    74
    Likes Received:
    49
    I don't understand what you say [My english is very bad :) ]. But this is what i use in my .htaccess to redirect sitemap.xml to the php file

    Code:
    <IfModule mod_rewrite.c>
    RewriteRule ^sitemap\.xml /wp-content/plugins/sitemap-index/gen_sitemap.php?s=0 [L]
    </IfModule>
    
     
  6. satyawrat

    satyawrat Jr. VIP Jr. VIP

    Joined:
    Jul 8, 2009
    Messages:
    917
    Likes Received:
    1,180
    Occupation:
    Hustler
    Location:
    Gurgaon
    Home Page:
    Thanks for that mate! I was also looking for something simialr! :D
     
  7. drumltd

    drumltd Regular Member

    Joined:
    Dec 4, 2008
    Messages:
    467
    Likes Received:
    13
    I use something very similar, however you will find that if you have to many pages to index, the sitemap actually becomes, a sitemap index (i.e. and index of smaller maps) The standard plugin has path to these as been in wth original plugin directory. So I take advantage of slightly different rewrite rule, and also rewrite these from a \sitemap.xml?paramxxx to the correct path, so that they bypass the robots.txt rules, that don't allow spiders into those directories.

    Hope that explains what I meant.
     
  8. vloza

    vloza Registered Member

    Joined:
    Apr 7, 2010
    Messages:
    74
    Likes Received:
    49
    I understand now, yes you are right if your sitemap becomes larger than the configuration entries it generates a sitemap index.

    But as my sitemaps are short i never took a look at that.
     
  9. Danzig

    Danzig Registered Member

    Joined:
    Jul 23, 2009
    Messages:
    86
    Likes Received:
    11
    Use Google XML Sitemap Plugin.

    Uncheck the option "Rebuild sitemap if you change the content of your blog".
     
  10. drumltd

    drumltd Regular Member

    Joined:
    Dec 4, 2008
    Messages:
    467
    Likes Received:
    13
    Doesn't that meen you've got to rebuild it manually, and inbetween times have a blog that is out of date?
     
  11. Jerek

    Jerek Newbie

    Joined:
    Aug 21, 2010
    Messages:
    19
    Likes Received:
    3
    i've tried this..but never wanted to share.. pretty boring
     
  12. noname boy

    noname boy Newbie

    Joined:
    Nov 9, 2010
    Messages:
    36
    Likes Received:
    1
    You do not need one. Google usually finds all your pages, its their business.