gorriecoe/silverstripe-robots 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

gorriecoe/silverstripe-robots

最新稳定版本:1.0.2

Composer 安装命令:

composer require gorriecoe/silverstripe-robots

包简介

Simple robots generation module for Silverstripe.

README 文档

README

This module provides simple robots.txt generation for Silverstripe, with various configuration options available.

When a site is not in live mode (such as on a testing domain) it will respectively block the entire domain, ensuring that (at least respectful) search engines will refrain from indexing your test site.

Installation

Composer is the recommended way of installing SilverStripe modules.

composer require gorriecoe/silverstripe-robots

Requirements

  • silverstripe/cms ^4.0

Maintainers

Credit

This module is heavily inspired by silverstripe-robots by Damian Mooyman

Configuration

You can add a page or pattern to be blocked by adding it to the disallowedUrls configuration

gorriecoe\Robots\Robots:
  disallowed_urls:
    - 'mysecretpage.html'
    - '_private'
    - 'Documents-and-Settings/Ricky/My-Documents/faxes/sent-faxes'

Also by default, any page with 'ShowInSearch' set to false will also be excluded. This can be useful for hiding auxiliary pages like "thanks for signing up", or error pages.

You can turn this off (if you really absolutely think you need to) using the below.

gorriecoe\Robots\Robots:
  disallow_unsearchable: false

By default the module will check for a sitemap file in /sitemap.xml. You can set a custom file location using the below configuration.

gorriecoe\Robots\Robots:
  sitemap: '/sitemap.xml'

For multiple sitemaps.

gorriecoe\Robots\Robots:
  sitemap:
      - '/sitemap_index.xml'
      - 'http://www.gstatic.com/s2/sitemap.xml'

统计信息

  • 总下载量: 11.67k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2018-04-12