问题标签 [noindex]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
robots.txt - Noindex in a robots.txt
I've always stopped google from indexing my website using a robots.txt file. Recently i've read an article from a google employee where he stated you should do this using meta tags. Does this mean Robots.txt won't work? Since i'm working with a CMS my options are very limited and its a lot easier just using a robots.txt file. My question is whats the worst that could happen if i proceed using a robots.txt file instead of meta tags.
php - 当我被包含在所有带有php include的页面中时如何使用noindex?
我需要<meta name="robots" content="noindex">
在我的“感谢页面”中使用。
谷歌指令说我需要把它放在<head>
标签之间,但是我的头标签是从所有页面的同一个文件中共享的(包括 php),即使对于那些我想被索引的页面也是如此。
什么是正确的做法?
这就是我在所有页面上包含它的方式(基本方法),<head>
标签在 head.php 文件中:
wordpress - 如何修复 - 已编入索引,但已被 robots.txt 阻止?
我刚刚收到一封关于我网站的索引覆盖率问题的电子邮件。以下文件已被 Google 索引:
root-of-my-site/files/custom.js
请注意,/files
尽管 Google 已从该文件夹中索引了一个 URL,但我已在我的 .htaccess 中禁用文件夹。
请让我知道我应该如何永远取消我的 URL 索引!
shopify - 如何在 Shopify 商店中为特定页面添加 noindex
我有一个 Shopify 商店,我想阻止搜索引擎索引一些产品页面,我找到了这个解决方案https://help.shopify.com/en/manual/promoting-marketing/seo/hide-a-page-from-搜索引擎?utm_source=gurucopy&utm_medium=link&utm_campaign=Gurus#undefined
{% if handle contains 'page-handle-you-want-to-exclude' %}
<meta name="robots" content="noindex">
{% endif %}
但我不应该如何更改以阻止我的页面链接下方的页面 mysite.com/products/product-26
mysite.com/products/kalita
谢谢你
html - 如何仅为 Google 设置 noindex?
这些天谷歌有这个标签我可以用来告诉它不要索引页面
我的问题是我需要通用索引和谷歌 noindex 标签吗?顺序重要吗?
假设我希望除 Google 之外的其他所有人都为该页面编制索引,将设置两个标签都有效:
有任何想法吗?
regex - robots.txt 处理 URL 中的 #
给定以下 URL:
- example.com/products
- example.com/products#/page-2
- example.com/products#/page-3
- ...
通过使用 robots.txt 文件,第一个 URL (example.com/products) 应该被编入索引,其他每个 URL 都应该被阻止被编入索引。如何才能做到这一点?
以下尝试均未以所需方式起作用:
Noindex: /products#/page-*
Noindex: /products\#/page-*
Noindex: /*/page-*
Noindex: /*#/page-*
Noindex: /*\#/page-*
indexing - 不要索引多商店 prestashop 1.7 中的所有商店
我有一个多商店,我希望其中一个商店不在任何浏览器中被索引。我该怎么做才能避免索引?问题是他们共享机器人。我可以做什么?你能做到一个域没有在机器人中编入索引吗?作为一个多商店不存在不索引它的文件夹,只有指向prestashop 1.7的多任务的域
squarespace - Squarespace 标签页可以无索引吗?
我想“noindex” Squarespace 网站上的所有标签页面。不幸的是,由于 Squarespace 不允许访问 .htaccess 文件甚至 robots.txt 文件,而且标签页是动态的,我还没有找到阻止谷歌索引它们的方法。我尝试通过 Search Console 删除它们也没有成功。
那么有没有人知道阻止和不索引 Squarespace 标签页面的方法?
media - Hoy 为 Xenforo 中的某些媒体类别添加 noindex 标签
我正在尝试从 Xenforo 中的某些媒体库类别的搜索中排除,但它不起作用。
我在 xfmg_media_view 模板中添加了以下代码。
任何人都知道如何解决它?
woocommerce - Noindex特定类别分页页面
WooCommerce 正在为父类别创建类别分页页面。我们不希望这些被索引,但我不知道如何最好地做到这一点。
例如我有 https://www.i-hled.co.uk/product-category/light-engines/led-count-one/page/2/
这上升到第 31 页,但我只希望主类别页面被索引而不是这些分页页面。这不是站点范围的要求,我仍然希望其他页面分页索引,所以我无法进行全局更改。
我看过以下
但这会删除所有分页索引
我也想到了标题中的这些内容,但我无法弄清楚这将如何与分页一起使用。
有没有办法在 htaccess 文件中执行此操作?还是 header.php 文件中的代码是最佳选择?
https://www.i-hled.co.uk/product-category/light-engines/led-count-one/page/2/ https://www.i-hled.co.uk/product-category/光引擎/led-count-one/page/3/ 等
不会被索引,但 https://www.i-hled.co.uk/product-category/light-engines/led-count-one/one-led/page/2/ https://www.i- hled.co.uk/product-category/light-engines/led-count-one/one-led/page/3/ 等
将被索引