2017 © Pedro Peláez
 

silverstripe-module silverstripe-subsites-robotstxt

Generate custom robots.txt for subsites

image

rotassator/silverstripe-subsites-robotstxt

Generate custom robots.txt for subsites

  • Wednesday, May 17, 2017
  • by rotassator
  • Repository
  • 1 Watchers
  • 0 Stars
  • 204 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 3 % Grown

The README.md

SilverStripe Subsites Robots.txt Module

Generate custom robots.txt for each subsite., (*1)

This module aims to prevent indexing of subsite-specific folder assets that belong to other subsites. It creates a robots.txt file with Disallow rules for folders belonging to other subsites (ie. not folders that are common or for the current subsite)., (*2)

Installation

composer require rotassator/silverstripe-subsites-robotstxt

Live mode

Set the site to live mode to see subsite-specific robots.txt. On dev or test environments, robots are disallowed for all files., (*3)

See Environment management documentation for more details., (*4)

Example robots.txt for live site

For example1.com subsite:, (*5)

# robots.txt for Example 1

User-agent: *
Disallow: assets/example2/
Disallow: assets/example2-documents/

For example2.com subsite:, (*6)

# robots.txt for Example 2

User-agent: *
Disallow: assets/example1/

Example for non-live site

# robots.txt for Example 1

User-agent: *
Disallow: /

The Versions

17/05 2017

dev-master

9999999-dev https://github.com/rotassator/silverstripe-subsites-robotstxt

Generate custom robots.txt for subsites

  Sources   Download

MIT

The Requires

 

by Steve Dixon

silverstripe robots robots.txt subsites

17/05 2017

dev-develop

dev-develop https://github.com/rotassator/silverstripe-subsites-robotstxt

Generate custom robots.txt for subsites

  Sources   Download

MIT

The Requires

 

by Steve Dixon

silverstripe robots robots.txt subsites

17/05 2017

1.0

1.0.0.0 https://github.com/rotassator/silverstripe-subsites-robotstxt

Generate custom robots.txt for subsites

  Sources   Download

MIT

The Requires

 

by Steve Dixon

silverstripe robots robots.txt subsites