Silverstripe Extension to send noindex, nofollow for files in foldes that do not ShowInSearch.
Silverstripe FolderIndex let you manage visibility of files for Search Engines on parent folder basis, by setting X-Robots header-tags
nosnippet. By uncheck
Details of a folder, headers 'll be set on all files contained, inclusive files in sub-folders. If
gorriecoe/silverstripe-robots is installed, "unchecked folders" are also disallowed per
The module also adds
File. This can be used for checking in xml-sitemap, schema etc. and is used in CMS/Assets to indicate, if a file has X-Robots-Tag headers set per parent Folder or parent/parent/etc. If headers are set, it return the Folder-Object that blocks indexing, otherwise false. So far this module just integrates with Apache
- silverstripe/asset-admin: ^1.6 (just tested with that)
Composer is the recommended way installing Silverstripe modules.
composer require lerni/folderindex
- Uncheck the
Indexing child filesCheckBox of a folder under
Permissions, save and rules in
assets/.htaccess'll be created accordingly.
This module "overwrites"
- Hook-in to write
assets/.htaccessrather than just rely on
- roles are falsely also set for sub-folders, which are blocked through parents
- show X-Robots-Tag alert-warning also in file section rather than just in the Details panel?