网站首页 / 资讯 / Magento教程/ Magento2.x教程

Magento2 标准robots.txt文件规范写法

作者:admin

User-agent: *
Allow: /


# Then we start disallowing stuff
# Directories

Disallow: /404/
Disallow: /app/
Disallow: /cgi-bin/
Disallow: /downloader/
Disallow: /errors/
Disallow: /includes/
Disallow: /magento/
Disallow: /pkginfo/
Disallow: /report/
Disallow: /scripts/
Disallow: /shell/
Disallow: /stats/
Disallow: /var/

# Paths (clean URLs)
Disallow: /index.php/
Disallow: /catalog/product_compare/
Disallow: /catalog/category/view/
Disallow: /catalog/product/view/
Disallow: /catalogsearch/
Disallow: /control/
Disallow: /contacts/
Disallow: /customer/
Disallow: /customize/
Disallow: /newsletter/
Disallow: /poll/
Disallow: /sendfriend/
Disallow: /tag/
Disallow: /wishlist/
Disallow: /catalog/product/gallery/

# Files
Disallow: /cron.php
Disallow: /cron.sh
Disallow: /error_log
Disallow: /install.php
Disallow: /LICENSE.html
Disallow: /LICENSE.txt
Disallow: /LICENSE_AFL.txt
Disallow: /STATUS.txt

# Paths (no clean URLs)
Disallow: /*.php
Disallow: /*?SID=

## Disallow osCommerce links
Disallow: *cPath=*

标签: magento2 robots robots robots magento2
上一篇:Magento2修复Page Builder不存在的问题
下一篇:怎样解决 The website with id 1 that was requested wasn't found.

相关内容

最近更新
相关产品
综合服务邮箱: magento2#foxmail.com