-
-
Save Hailong/d657032b5cfebf1c7cdc20719999f07e to your computer and use it in GitHub Desktop.
Magento 2 recommended additions for robots.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User-agent: * | |
# Directories | |
Disallow: /app/ | |
Disallow: /bin/ | |
Disallow: /dev/ | |
Disallow: /lib/ | |
Disallow: /phpserver/ | |
Disallow: /pkginfo/ | |
Disallow: /report/ | |
Disallow: /setup/ | |
Disallow: /update/ | |
Disallow: /var/ | |
Disallow: /vendor/ | |
# Paths (clean URLs) | |
Disallow: /index.php/ | |
Disallow: /catalog/product_compare/ | |
Disallow: /catalog/category/view/ | |
Disallow: /catalog/product/view/ | |
Disallow: /catalogsearch/ | |
Disallow: /checkout/ | |
Disallow: /control/ | |
Disallow: /contacts/ | |
Disallow: /customer/ | |
Disallow: /customize/ | |
Disallow: /newsletter/ | |
Disallow: /review/ | |
Disallow: /sendfriend/ | |
Disallow: /wishlist/ | |
# Files | |
Disallow: /composer.json | |
Disallow: /composer.lock | |
Disallow: /CONTRIBUTING.md | |
Disallow: /CONTRIBUTOR_LICENSE_AGREEMENT.html | |
Disallow: /COPYING.txt | |
Disallow: /Gruntfile.js | |
Disallow: /LICENSE.txt | |
Disallow: /LICENSE_AFL.txt | |
Disallow: /nginx.conf.sample | |
Disallow: /package.json | |
Disallow: /php.ini.sample | |
Disallow: /RELEASE_NOTES.txt | |
# Do not index pages that are sorted or filtered. | |
Disallow: /*?*product_list_mode= | |
Disallow: /*?*product_list_order= | |
Disallow: /*?*product_list_limit= | |
Disallow: /*?*product_list_dir= | |
# Do not index session ID | |
Disallow: /*?SID= | |
Disallow: /*? | |
Disallow: /*.php$ | |
# CVS, SVN directory and dump files | |
Disallow: /*.CVS | |
Disallow: /*.Zip$ | |
Disallow: /*.Svn$ | |
Disallow: /*.Idea$ | |
Disallow: /*.Sql$ | |
Disallow: /*.Tgz$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment