在哪里放置robots.txt作为CodeIgniter [英] where to put robots.txt for a CodeIgniter
本文介绍了在哪里放置robots.txt作为CodeIgniter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
将robots.txt文件放置在codeigniter中。
Where to place the robots.txt file in codeigniter.
我不知道如何放置文件夹。
I dont no how to put where folder.
User-agent: *
Disallow: /
推荐答案
robots.txt文件必须放置在主机的文档根目录中。
The robots.txt file MUST be placed in the document root of the host. It will not work in other locations.
如果您的主机是example.com,则需要在 http://example.com/robots.txt 。
If your host is example.com, it needs to be accessible at http://example.com/robots.txt.
这篇关于在哪里放置robots.txt作为CodeIgniter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文