如何在Plone中修改robots.txt?
我有一个由我管理的 Plone 站点,我想将一些页面添加到 robots.txt 的“禁止”中。
看来Plone会自动生成一个robots.txt文件。我找不到任何方法来修改它。我还尝试将“robots.txt”文件添加到应用程序的根目录,但它说“robots.txt 已保留”
有谁知道如何使用 Plone (v3) 修改它?
I've got a Plone site that I administer and I'd like to add some pages to the Disallow of a robots.txt.
It appears that Plone automatically generates a robots.txt file. I can't find any way to modify that. I've also tried adding a 'robots.txt' file to the root of the app, but it says that "robots.txt is reserved"
Does anyone know how to modify this with Plone (v3)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
正如已经指出的,Plone 3.x 已经包含了 robots.txt 文件,因此现在首选的解决方案可能不是在 ZMI 中创建新的 robots.txt,而是自定义包含的文件。
使用 ZMI,转到 /portal_skins/plone_templates/ 并找到 robots.txt 文件。像任何其他皮肤元素一样进行自定义。
或者使用文件系统,只需将 robots.txt 文件添加到自定义皮肤产品中即可。
As has been noted already, Plone 3.x already includes a robots.txt file so the preferred solution now is probably NOT to create a new robots.txt in the ZMI but rather to customize the included one.
Using the ZMI, go to /portal_skins/plone_templates/ and find the robots.txt file. Customize as you would any other skin element.
Or using the filesystem, just add your robots.txt file to a custom skin product.
在Plone 5中它变成了BrowserView,所以现在您可以在
/@@site-controlpanel
的站点设置
中对其进行编辑。In Plone 5 it was turned into a BrowserView, so now you can edit it in the
Site Settings
at/@@site-controlpanel
.源中选择它: http://plone.org/支持/论坛/一般#nabble-td329779
source: http://plone.org/support/forums/general#nabble-td329779