Skip to content

Instantly share code, notes, and snippets.

@ArjenMiedema
Created April 7, 2017 05:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ArjenMiedema/a50d77d6aae69ffbc4b4dbf993c3a51e to your computer and use it in GitHub Desktop.
Save ArjenMiedema/a50d77d6aae69ffbc4b4dbf993c3a51e to your computer and use it in GitHub Desktop.
# Sitemap
Sitemap: https://www.domain.com/sitemap.xml
# Crawlers Setup
User-agent: *
# Directories
Disallow: /app/
Disallow: /dev/
Disallow: /downloader/
Disallow: /errors/
Disallow: /includes/
Disallow: /js/
Disallow: /lib/
Disallow: /media/captcha/
Disallow: /media/customer/
Disallow: /media/dhl/
Disallow: /media/downloadable/
Disallow: /media/email/
Disallow: /media/import/
Disallow: /media/pdf/
Disallow: /media/sales/
Disallow: /media/tmp/
Disallow: /media/xmlconnect/
Disallow: /pkginfo/
Disallow: /shell/
Disallow: /var/
Disallow: /vendor/
Allow: /media/wysiwyg/
# Paths (clean URLs)
Disallow: /index.php/
Disallow: /catalog/product_compare/
Disallow: /catalog/category/view/
Disallow: /catalog/product/view/
Disallow: /catalog/product/gallery/
Disallow: /catalogsearch/
Disallow: /checkout/
Disallow: /control/
Disallow: /contacts/
Disallow: /customer/
Disallow: /customize/
Disallow: /newsletter/
Disallow: /poll/
Disallow: /review/
Disallow: /sendfriend/
Disallow: /tag/
Disallow: /wishlist/
Allow: /catalog/seo_sitemap/category/
# Files
Disallow: /api.php
Disallow: /composer.json
Disallow: /composer.lock
Disallow: /cron.php
Disallow: /scheduler_cron.sh
Disallow: /cron.sh
Disallow: /error_log
Disallow: /index.php.sample
Disallow: /install.php
Disallow: /mage
Disallow: /RELEASE_NOTES.txt
Disallow: /LICENSE.html
Disallow: /LICENSE.txt
Disallow: /LICENSE_AFL.txt
Disallow: /STATUS.txt
Disallow: /package.xml
Disallow: /php.ini.sample
Disallow: /get.php # Magento 1.5+
# Paths (no clean URLs)
Disallow: /*.php$
Disallow: /*?SID=
Disallow: /rss*
Disallow: /*PHPSESSID
Disallow: /*?
Disallow: /*?p=*&
Allow: /*?p=
Allow: /*?id=
# Filters
Disallow: /*?category=*
Disallow: /*&category=*
Disallow: /*?price=*
Disallow: /*&price=*
# Add your other filters here
User-agent: Googlebot-Image
Disallow: /
Allow: /media/catalog/product/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment