cdaguerre / robots-bundle
Add contextual robots meta headers
Installs: 15 249
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.6.0
- sylius/resource-bundle: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.0
- phpspec/phpspec: ~2.0
This package is not auto-updated.
Last update: 2024-12-21 20:14:13 UTC
README
No need for robots.txt files, add contextual robot meta headers.
Installation
$ composer require cdaguerre/robots-bundle
Configuration
dag_robots: rules: - { route: 'homepage', tags: ['noindex', 'nofollow'], hosts: ['www.example.com'] } - { route: 'product_show', tags: ['noindex', 'nofollow'], hosts: ['www.example1.com', 'www.example2.com'] } - { route: 'category_show', tags: ['noindex', 'nofollow'] }
TODO
- Add tests