Robots.txt

Le fichier robots.txt c’est quoi ?

Le fichier robots.txt est un fichier placé à la racine d’un site internet regroupant toutes les instructions sur l’indexation des robots de Google, Bing, Yahoo, …

Exemple d’un fichier robots.txt pour une boutique Prestashop 1.7

# For more information about the robots.txt standard, see:

# http://www.robotstxt.org/robotstxt.html

User-agent: *

# Allow Directives

Allow: */modules/*.css

Allow: */modules/*.js

Allow: */modules/*.png

Allow: */modules/*.jpg

Allow: */modules/*.webp

Allow: /js/jquery/*

# Private pages

Disallow: /*?p=

Disallow: /*?author=1

Disallow: /*?order=

Disallow: /*?tag=

Disallow: /*?id=

Disallow: /*?id_currency=

Disallow: /*?search_query=

Disallow: /*?back=

Disallow: /*?n=

Disallow: /*&order=

Disallow: /*&tag=

Disallow: /*&id_currency=

Disallow: /*&search_query=

Disallow: /*&back=

Disallow: /*&n=

Disallow: /*controller=addresses

Disallow: /*controller=address

Disallow: /*controller=authentication

Disallow: /*controller=cart

Disallow: /*controller=discount

Disallow: /*controller=footer

Disallow: /*controller=get-file

Disallow: /*controller=header

Disallow: /*controller=history

Disallow: /*controller=identity

Disallow: /*controller=images.inc

Disallow: /*controller=init

Disallow: /*controller=my-account

Disallow: /*controller=order

Disallow: /*controller=order-slip

Disallow: /*controller=order-detail

Disallow: /*controller=order-follow

Disallow: /*controller=order-return

Disallow: /*controller=order-confirmation

Disallow: /*controller=pagination

Disallow: /*controller=password

Disallow: /*controller=pdf-invoice

Disallow: /*controller=pdf-order-return

Disallow: /*controller=pdf-order-slip

Disallow: /*controller=product-sort

Disallow: /*controller=search

Disallow: /*controller=statistics

Disallow: /*controller=attachment

Disallow: /*controller=guest-tracking

Disallow: /app/

Disallow: /cache/

Disallow: /classes/

Disallow: /config/

Disallow: /controllers/

Disallow: /download/

Disallow: /js/

Disallow: /localization/

Disallow: /log/

Disallow: /mails/

Disallow: /modules/

Disallow: /override/

Disallow: /pdf/

Disallow: /src/

Disallow: /tools/

Disallow: /translations/

Disallow: /upload/

Disallow: /var/

Disallow: /vendor/

Disallow: /webservice/

Disallow: /fr/app/

Disallow: /fr/cache/

Disallow: /fr/classes/

Disallow: /fr/config/

Disallow: /fr/controllers/

Disallow: /fr/download/

Disallow: /fr/js/

Disallow: /fr/localization/

Disallow: /fr/log/

Disallow: /fr/mails/

Disallow: /fr/modules/

Disallow: /fr/override/

Disallow: /fr/pdf/

Disallow: /fr/src/

Disallow: /fr/tools/

Disallow: /fr/translations/

Disallow: /fr/upload/

Disallow: /fr/var/

Disallow: /fr/vendor/

Disallow: /fr/webservice/

# Files

Disallow: /*fr/recuperation-mot-de-passe

Disallow: /*fr/adresse

Disallow: /*fr/adresses

Disallow: /*fr/connexion

Disallow: /*fr/panier

Disallow: /*fr/reduction

Disallow: /*fr/historique-commandes

Disallow: /*fr/identite

Disallow: /*fr/mon-compte

Disallow: /*fr/suivi-commande

Disallow: /*fr/avoirs

Disallow: /*fr/commande

Disallow: /*fr/recherche

Disallow: /*fr/suivi-commande-invite

Disallow: /*fr/confirmation-commande