如何从搜索引擎隐藏特定的网站页面URL? [英] How to Hide a Particular website page URL from Search engines?

查看:279
本文介绍了如何从搜索引擎隐藏特定的网站页面URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  1. 我的项目是一个电子商务网站,其中包含许多静态和动态页面.我想在搜索引擎中仅隐藏 一页.如果有人搜索该文本,则无需在搜索引擎上显示该文本,例如"Google","Yahoo"等.
  1. My project is an E-commerce website that It contains lot of static and dynamic pages. I want to hide only one page from Search engines. If any one search that text then it need not display on search engine like "Google","Yahoo" etc.

http://www.mysitename.com/users/download/id

http://www.mysitename.com/users/download/id

以上网址需要隐藏在搜索引擎中.

The above url need to hide in search engines.

到目前为止,如果有人在搜索我的网站名称,则上面的链接也会显示在Google搜索中.我能为此做些什么?

If any one searching my mysitename then above link also displaying in Google search as of now. what i can do for this ?

推荐答案

在网站根目录中添加文件robots.txt,其内容如下:

Add a file robots.txt in your website root directory with the following contents:

User-agent: *
Disallow: /users/download/id

这种方法基本上告诉搜索引擎不要索引/users/download/id.

This approach basically tells the Search Engine not to index /users/download/id.

这并不意味着每个搜索引擎都会这样做,但是大多数现代搜索引擎都会考虑该文件.

This doesn't mean every Search Engine will do that, but most of the modern Search Engines will take in consideration that file.

这篇关于如何从搜索引擎隐藏特定的网站页面URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆