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-Tag header-tag noindex
, nofollow
, noimageindex
, noarchive
, nosnippet
. By uncheck ShowInSearch
under Details
of a folder, headers 'll be sent on all files contained, inclusive files in sub-folders.
The module also adds NoFileIndex()
to 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 .htaccess
.
Google will stop supporting noindex directive in robots.txt
. This module aims to give some control in that area.
https://developers.google.com/search/blog/2019/07/rep-id
Composer is the recommended way installing Silverstripe modules.
composer require lerni/folderindex
Run dev/build
Indexing child files
CheckBox of a folder under Permissions
, save and rules in assets/.htaccess
'll be created accordingly.Thanks to @digitall-it for inspiration and the Italian translation.
assets/.htaccess
rather than just dev/build
?Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem