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

作者:admi... 点击数: 0 收藏到会员中心
最后编辑时间: 2022-10-31 12:46

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.txt文件规范写法 来源于 https://www.magentola.com/news-read-328.html
  • 0
      超赞
  • 0
      期待
  • 0
      无感
  • 0
      雷囧
  • 0
      垃圾
  • 0
      路过
  • 3
上一篇:Magento2修复Page Builder不存在的问题
下一篇:怎样解决 The website with id 1 that was requested wasn't found.
相关内容
产品推荐