New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Robots.txt auto generation on install #1222
Comments
Good point. But a more important thing is the Host directive. |
But only Yandex |
Yes its Yandex related feature, not supported by others. |
But we can use somekind of this variant:
|
This requires setting a proper CHMOD on robots.txt file which isn't very good for 2 reasons: it adds one more step to the installation process and it isn't very good for security. |
No special actions needed. Just one string help these people had writable root by default (eg. on sharing hosting it's a common practice). |
Such a limited scope of things needing to modify robots.txt I would instead propose that simply on installing sitemap plugin. The attempt to modify robots.txt can be made during the installation of the plugin, the plugin handling it itself. It could also check and warn about modification if need be. |
Good point, thanks. |
Added automatic creation of directives Sitemap and Host |
Thus
sitemap
directive added into robots.txt (see 7523f28 ) we have ability to autocreate (if write permition granted) robots.txt with certain site url during install. So no addition (hand made) changes required to robots.txt (except uncommentsitemap
line).The text was updated successfully, but these errors were encountered: