我怎么可能prevent搜索引擎从我的网站上抓取一个子域? [英] How may i prevent search engines from crawling a subdomain on my website?
问题描述
我已经安装在我的网站的cPanel。
I have cPanel installed on my website.
-
我去域节的cPanel
I went to the Domains section on cPanel
我点击子域。
我分配的子域名(如:personal.mywebsite.com)
I assigned the subdomain name (e.g : personal.mywebsite.com )
这要我还指定文档根目录文件夹。我分配mywebsite.com/personal
It wanted me to assign document root folder also. I assigned mywebsite.com/personal
如果我在我的网站根目录下创建的robots.txt(如:website.com)
if i create robots.txt in my website root(e.g : website.com)
用户代理:
不允许:/个人/
它还可以阻止personal.mywebsite.com?
Can it also block personal.mywebsite.com?
我应该怎么办?
感谢
推荐答案
当您希望阻止对 personal.example.com
网址,请访问 http://personal.example.com/robots.txt
(RESP。 HTTPS
而不是 HTTP
)。
When you want to block URLs on personal.example.com
, visit http://personal.example.com/robots.txt
(resp. https
instead of http
).
没关系服务器如何组织文件夹中的后台访问该网址时,它的robots.txt是可用的,它只是事宜。
It doesn’t matter how your server organizes folders in the backend, it only matters which robots.txt is available when accessing this URL.
这篇关于我怎么可能prevent搜索引擎从我的网站上抓取一个子域?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!