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. off white shoes

    I intended to write you that little bit of observation so as to say thanks as before about the unique thoughts you have contributed above. It’s quite unbelievably generous with people like you to provide without restraint all a few people could possibly have distributed as an electronic book to help with making some profit for themselves, especially now that you could possibly have done it in the event you wanted. The things also acted to be the fantastic way to be certain that other individuals have similar desire the same as my very own to grasp a lot more when considering this matter. I think there are some more pleasant times up front for individuals that check out your website.

  2. sfcu99

    stramectol.com – I bought some compression sock no gauge info they were gigantic had to gain them but as I tried on one mate unable to reoccur them. if there had been some decorous immensity info I would have not at all bought. No people to speak to sole « bots » and have to hold on up 15 province days instead of my refund. i wasted cabbage on shipping and returning. wish I had know reviews in front of I purchased You have made your point!

  3. off white clothing

    I simply wanted to thank you so much once again. I do not know the things that I would’ve used without these basics documented by you directly on my problem. It seemed to be an absolute difficult dilemma in my circumstances, however , understanding a specialised style you dealt with that took me to jump over happiness. Now i am grateful for the work and in addition wish you realize what a powerful job you have been putting in training other individuals with the aid of your websites. I am certain you’ve never met all of us.

  4. supreme shirt

    I’m just writing to let you understand of the brilliant discovery my friend’s girl encountered using your blog. She discovered numerous issues, with the inclusion of what it’s like to have a very effective giving heart to get other folks with no trouble master certain impossible issues. You really surpassed our own desires. Many thanks for distributing the warm and friendly, safe, educational and as well as unique tips about your topic to Gloria.

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *