开发者

How do I modify robots.txt in Plone?

开发者 https://www.devze.com 2022-12-08 06:19 出处:网络
I\'ve got a Plone site that I administer and I\'d like to add some pages to the Disallow of a robots.txt.

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)?


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.


In Plone 5 it was turned into a BrowserView, so now you can edit it in the Site Settings at /@@site-controlpanel.


  1. Create a robots.txt on your desktop
  2. Go in the xmi of the plone site -> add a new file -> call it robot.txt
  3. Choose it from the desktop

source: http://plone.org/support/forums/general#nabble-td329779

0

精彩评论

暂无评论...
验证码 换一张
取 消