Google sitemap WordPress SPIP

Pour mieux référencer son site, Google propose de créer un plan du site au format XML ou compressé en .gz. Voir à cette adresse.

Sitemap est un protocole plus d’infos ici
Exemple simple de sitemap.xml :

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

Ce sitemap est limité à 50 000 URLs et 10MB. Si on a un sitemap qui dépasse on peut utiliser un index, comme cet exemple :

<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

Plugin WordPress

Un plugin existe http://www.arnebrachhold.de/redir/sitemap-home/

Plugin SPIP

Il y a un plugin  disponible sur SPIP zone au nom de sitemap_x_x.zip pour Spip 1.9. Prenez la dernière version et décompressez le contenu dans le répertoire « plugins/ » à la racine du SPIP (créez le si besoin). Vous aurez alors accès au lien vers la page des plugins. A lire aussi http://www.spip-contrib.net/Sitemap-Google

A lire pour Spip 2

Pour une adresse en .XML vous pouvez ajouter dans htaccess :

RewriteRule ^sitemap[.]xml$      spip.php?page=sitemap [QSA,L]


la version sitemap est à 0.9 Le plugin déclare la page sommaire, je préconise d’effacer cette boucle. Regarder le source (le xml généré) de ce plugin et adapter le à vos besoins. Préférez le codage utf8 du XML, un filtre existe pour vos URLS |utf8_encode

Activez votre plugin nouvellement créé. Vous pourrez ensuite accéder à votre sitemap directement par l’url :



Allez dans votre interface de gestion Google et soumettez votre sitemap.


Vous pouvez renseigner votre sitemap dans le fichier robots.txt placé à la racine de votre site :

User-agent: *
Sitemap: http://www.monsite.fr/spip.php?page=sitemap

  1. Odis Bleiweiss

    Awesome site you have here but I was curious about if you knew of any community forums that cover the same topics discussed here? I’d really love to be a part of online community where I can get suggestions from other knowledgeable people that share the same interest. If you have any recommendations, please let me know. Cheers!|

  2. curry shoes

    I precisely desired to thank you so much once more. I am not sure the things I could possibly have gone through in the absence of the entire pointers documented by you over that field. It previously was a intimidating matter in my view, but taking note of a new skilled way you dealt with the issue forced me to jump with happiness. Now i am happy for your work and in addition pray you really know what a great job you have been doing educating most people using your webpage. More than likely you’ve never got to know all of us.

  3. yeezy 700

    I must point out my appreciation for your generosity giving support to individuals who must have help with in this theme. Your special dedication to passing the solution around appeared to be incredibly useful and has in every case allowed regular people like me to realize their objectives. This warm and helpful hints and tips entails a lot to me and even further to my mates. With thanks; from all of us.

  4. chrome hearts outlet

    Needed to post you one little observation to finally give thanks over again for your remarkable solutions you’ve contributed above. It’s really particularly open-handed of you to offer publicly just what some people could possibly have distributed for an electronic book to make some money for their own end, chiefly seeing that you might have tried it if you considered necessary. These guidelines in addition served to be the fantastic way to be certain that other people have the identical fervor like mine to see somewhat more with regard to this issue. Certainly there are lots of more pleasant times in the future for individuals that view your website.

  5. off white hoodie

    I happen to be commenting to make you be aware of what a useful encounter my girl encountered visiting the blog. She came to understand too many details, which included what it is like to have a marvelous helping heart to get certain people completely gain knowledge of several extremely tough subject areas. You truly exceeded people’s expected results. Thanks for supplying those precious, healthy, explanatory and cool tips about that topic to Lizeth.

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée.