Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/powerbi/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Model view controller MVC-如何阻止某些链接在搜索引擎中注册?_Model View Controller_Seo - Fatal编程技术网

Model view controller MVC-如何阻止某些链接在搜索引擎中注册?

Model view controller MVC-如何阻止某些链接在搜索引擎中注册?,model-view-controller,seo,Model View Controller,Seo,我的网站在首页上有如下链接: www.xxx.com/user/account/register 有人能告诉我如何停止这些链接注册到搜索引擎吗 谢谢尝试将rel=“nofollow”放入链接。谷歌不会为这个链接编制索引(但会遵循它) 其他搜索站点在这方面并不一致,但大多数都应该跳过对该链接的索引。如果这些链接指向您自己的页面,您可以创建robots.txt并将其放在根目录中。 这是我个人网站的用途: User-agent: * Disallow: /blog Disallow: /dev Dis

我的网站在首页上有如下链接:

www.xxx.com/user/account/register

有人能告诉我如何停止这些链接注册到搜索引擎吗

谢谢

尝试将
rel=“nofollow”
放入链接。谷歌不会为这个链接编制索引(但会遵循它)


其他搜索站点在这方面并不一致,但大多数都应该跳过对该链接的索引。

如果这些链接指向您自己的页面,您可以创建robots.txt并将其放在根目录中。 这是我个人网站的用途:

User-agent: *
Disallow: /blog
Disallow: /dev
Disallow: /apps
第一行“用户代理”指定您的目标搜索引擎/代理类型(在我的例子中是所有搜索引擎)。其余的是我告诉他们不要索引的目录/文件的不允许规则

更多关于或Google robots.txt的信息