where to put robots.txt for a CodeIgniter

徘徊边缘 提交于 2020-01-06 03:31:50

问题


Where to place the robots.txt file in codeigniter.

I dont no how to put where folder.

User-agent: *

Disallow: /

回答1:


The robots.txt file MUST be placed in the document root of the host. It will not work in other locations.

If your host is example.com, it needs to be accessible at http://example.com/robots.txt.



来源:https://stackoverflow.com/questions/30970833/where-to-put-robots-txt-for-a-codeigniter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!