在HTML中使用规范标记(Use of canonical tag in HTML)
我读到了HTML中的规范标签,据我所知,它用于帮助搜索引擎实现哪些是原始内容。 我在最近创建的博客中有文章,我在其他一些热门网站上粘贴了这些文章。 在这些网站中,我使用规范标记回复了我原始博文的链接。 但是我的博客页面在搜索引擎中不可见(其他网站确实显示了我的文章)。 在我粘贴到其他网站之前,我的文章在谷歌上编入索引,可以在第一页上看到。 所以我想,我的SEO部分没有问题。
有人可以建议一种方法,我的原始博客对内容有更高的偏好吗?
I read about canonical tags in HTML and from what I understood it is used to help search engines to realize which is the original content. I have articles in my recently created blog, which I have pasted in certain other popular websites. In those websites I gave back a link to my original blog post with the canonical tag. But yet my blog page is not visible in search engines (other websites do show my article). Before I had pasted onto other websites, my articles were indexed on google and could be seen on the 1st page. So I guess, there is no problem on my SEO part.
Can someone please suggest a method where my original blog gets higher preference for the content?
最满意答案
您可以使用跨域规范标记。
因此,如果您在其他域上有重复的内容,则可以在指向您网站上原始页面的页面上使用规范标记。
这是处理联合内容的好方法; 当然,您需要在这些其他网站上进行代码级访问,以便您可以实现规范标记。
更多信息如下
http://googlewebmastercentral.blogspot.com/2009/12/handling-legitimate-cross-domain.html
You can use cross domain canonical tags.
So if you have duplicated content on other domains you can use the canonical tag on those pages pointing back to the original page on your site.
This a great way to deal with syndicated content; of course you would need code level access on these other websites so you can implement the canonical tag.
More info below
http://googlewebmastercentral.blogspot.com/2009/12/handling-legitimate-cross-domain.html
相关问答
更多-
我不熟悉HTML :: Token,但Mojolicious的 Mojo :: DOM可以用来轻松查找和提取熟悉的CSS语法链接: use Mojo::DOM; my $html = ' ... '; my $dom = Mojo::DOM->new($html); my @src = map { $_->{src} } $dom->find('audio[onplaying] source[src]')->each; 如果您需要从网络中获取HTML文件或音频文件,也可以将其与Mojo ...
-
尝试这个:
RewriteEngine On RewriteCond %{HTTPS}s ^on(s)|off RewriteCond http%1://%{HTTP_HOST}%{REQUEST_URI} ^(.*?)/es/(.*)$ [NC] RewriteRule .* - [E=CANONICAL:%1/en/%2,NE,S=1] RewriteCond %{HTTPS}s ^on(s)|off RewriteRule .* - [E=CA ... -
假设doc是你的HtmlDocument对象。 HtmlNodeCollection links = doc.DocumentNode.SelectNodes("//link[@rel]"); 应该为您提供具有rel属性的link元素。 现在迭代: foreach (HtmlNode link in links) { string url; if (link.Attributes["rel"] == "canonical") { url = link.Attributes[ ...
-
新闻画廊和规范标签(News gallery & canonical tag)[2022-07-12]
所有照片都包含在/news/tiger-woods-win-the-cup吗? 如果不: 您不得使用canonical链接类型,因为您的新闻页面不会“识别上下文(引用)IRI”(这将是您的图库页面)的重复内容或内容的超集。 如是: 您可以使用canonical链接类型。 Are all photographs also included on /news/tiger-woods-win-the-cup? If no: You must not use the canonical link type, bec ... -
用PHP创建规范(Creating a canonical with PHP)[2022-12-08]
要制作规范网址,您应该确保,您只获得了所需的参数,并将它们按固定顺序排列。 这段代码就是这样。 它过滤_GET参数列表并构建一个只包含所需URL的新URL。 我给它做了一些评论,因此您可以轻松调整此代码以满足您的需求。 我使用array_filter,因为我不确定如果在数组中的foreach中取消设置数组元素会发生什么。 function params() { return array('b', 'c', 'a', 'z'); } function checkParam($a) { // ... -
在HTML中使用规范标记(Use of canonical tag in HTML)[2022-06-29]
您可以使用跨域规范标记。 因此,如果您在其他域上有重复的内容,则可以在指向您网站上原始页面的页面上使用规范标记。 这是处理联合内容的好方法; 当然,您需要在这些其他网站上进行代码级访问,以便您可以实现规范标记。 更多信息如下 http://googlewebmastercentral.blogspot.com/2009/12/handling-legitimate-cross-domain.html You can use cross domain canonical tags. So if you ha ... -
你的想法当然是可能的,但有一个更好的解决方案: 始终提供canonical URL, 即使它是自我指涉的 。
人们对rel =“canonical”的看法是什么?(What are people's thoughts about rel=“canonical”? Is anyone using it?)[2021-10-23]
维基百科打算将所有替代URL编入索引,这很有意思,例如http://en.wikipedia.org/wiki/Python_language具有规范的URL /wiki/Python_(programming_language) 。 它对于分页或排序的内容也可能有用,例如/foobar?sorby=date带有规范/foobar /foobar?sorby=date 。 我个人更喜欢通过添加robots.txt规则(如果谷歌很简单,因为它接受那里的正则表达式)和 ,从索引中排除所 ...不幸的是,使用默认的Magento功能无法完成。 首先,您需要确定在定义规范URL时要考虑的标准。 我们的Magento SEO扩展程序将允许您选择: 最长的URL(包含最大字符数的URL) 具有最大类别深度级别的URL 具有最小类别深度级别的非根URL(并且至少具有非根URL的非根URL 具有最少字符数的非rootURL(以及至少一个类别) 这些URL也可以添加到HTML和XML站点地图中。 最重要的是,您可以单独选择任何所选产品的任何URL或输入自定义规范。 您也可以使用重写的集合自己尝试。 对于社区版 ...不完全确定为什么要实现多个规范链接,因为您的示例不够详细,但这是一般规则: HTML不会 - 实际上也不能指定head元素内元素的顺序。 通常,您可以将元素放在最佳位置。 哪里有两种相同类型的元素: 对于竞争的元素,最后一个优先 对于不竞争的元素,数据被合并; 即便如此,如果数据中存在任何竞争(例如使用多个样式表),则最后的数据仍然优先。 由于你的两个规范元素可能在竞争中,我倾向于将后者视为规范的规范元素。 Not entirely sure why you are implementing multipl ...相关文章
更多- HTML 排版标记
- HTML 字体标记
- 在HTML中使用javascript
- HTML5 Video元素【HTML5教程 - 第三篇】
- HTML5 Audio元素【HTML5教程 - 第五篇】
- Struts的 html:img 标签(问题表述清楚)
- HTML5画布(Canvas)【HTML5教程 - 第七篇】
- Cocos-html5 初识
- nodejs与html代码分离
- HTML转义标签
最新问答
更多- 在csproj中使用appdata环境变量(Use appdata environment variable in csproj)
- 从背景返回后,Skobbler Map崩溃(Skobbler Map crashes after returning from background)
- 如何保持对绑定服务的轮询?(How to keep polling a bound service?)
- ASP.NET单选按钮jQuery处理(ASP.NET radio button jQuery handling)
- Linux上的FORTRAN图形库(FORTRAN graphic library on Linux)
- 我们如何根据索引更新dynamodb表(不基于primary has和range key)(how can we update dynamodb table based on index(not based on primary has and range key))
- 功能包装避免重复(wrap of functions avoid duplicating)
- Android BroadcastReceiver和Activity.onPause()(Android BroadcastReceiver and Activity.onPause())
- 无法使用phonegap 2.4在Android上播放录音(unable to play audio recordings on android using phonegap 2.4)
- VS2015 + Resharper:不要使用C#6(VS2015 + Resharper: Don't use C#6)
- 大学电脑四级对初学者来说要多久能过
- 特殊字符删除?(Special characters remove?)
- Android视频教程现在网上的都比较零散呢?有些太坑爹了,感觉老师就是在想当然的讲
- 计算同一个表中不同行之间的差异[重复](Calculate delta's between different rows in same table [duplicate])
- Javaweb开发,技术路线是什么?该怎么写?
- JavaScript只在php代码中执行一次(JavaScript only executes once inside php code)
- 不兼容的字符编码:ASCII-8BIT和UTF-8(incompatible character encodings: ASCII-8BIT and UTF-8)
- Clojure(加载文件)给出错误(Clojure (load-file) gives an error)
- 为具有瞬态scala依赖性的spring-xd项目优化gradle(Optimize gradle for spring-xd project with transient scala dependency)
- 如何才能在Alpha测试模式下发布我的应用程序?(How can I publish my app in Alpha test mode only?)
- “没有为此目标安装系统映像”Xamarin AVD Manager(“No system images installed for this target” Xamarin AVD Manager)
- maven中的Scalatest:JUnit结果(Scalatest in maven: JUnit results)
- 使用android SDK将文件直接上传到存储桶中的文件夹(Upload a file directly to a folder in bucket using android SDK)
- 是否应将plists导入CoreData?(Should plists be imported to CoreData?)
- java.lang.reflect.InvocationTargetException JavaFX TableView(java.lang.reflect.InvocationTargetException JavaFX TableView)
- 根据唯一列值动态创建多个子集(Dynamically create multiple subsets based on unique column values)
- 使用CSS可以使HTML锚标签不可点击/可链接吗?(Is it possible to make an HTML anchor tag not clickable/linkable using CSS?)
- 嵌套的模板可能性(Nested template possibilities)
- 任何方式在iOS7 +上以编程方式打开蓝牙(Any way to turn on bluetooth programmatically on iOS7+)
- 如何为给定的SQL查询编写JPA查询(How I can write JPA query for given SQL query)