Kirby Robots Writer
robots.txt file through a
c::set('robots.txt', ' User-agent: * Disallow: / Sitemap: https://example.com/sitemap.xml ');
User-agent: * Disallow: / Sitemap: https://example.com/sitemap.xml
Alternative solution - Snippet
Make sure your snippet exists and is registered:
c::set('robots.txt', snippet('robots.txt', , true));
Alternative solution - Site
Make sure you have a field called
robots in site.
- Complete rewrite. Made it much simpler.
- Initial release
- Kirby 2.3+
This plugin is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please create a new issue.
It is discouraged to use this plugin in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.