To this-is-a-sample.html, so whatever access www.blog.com/:157 will look at the canonical tag referring to this-is-a-sample.html and won't penalize your site for having duplicated content.
Doing this won't increase or decrease your page rank.
现在,如果您打开此页面的源代码,您应该会看到 Ben 在上面详细阐述的 rel="canonical"。该标签可确保搜索引擎将索引指定的标签。此外,建议这两个链接应该是可点击的,以便用户可以为规范链接添加书签。不要错过这个帖子:为什么有些网站在网址末尾添加“Slugs”?,这并不能解决您的问题,但它可以让您更深入地了解您的理解。
Expanding Ben's answer, why do not you take a look at how StackOverflow handle this? Take your own thread for example: https://stackoverflow.com/questions/4479453/adding-short-urls-to-a-blog-makes-seo-better-or-worse is resemble "nice friendly-URLs" of your blog, while https://stackoverflow.com/questions/4479453/ is the shorter one, similar to your www.blog.com/:157
Now if you open this source of this page, you should see rel="canonical" that Ben elaborated above. This tag makes sure that search engines will index the assigned one. Moreover, it is advised that those two links should be clickable, so that users can bookmark the canonical one. Do not miss this thread: Why do some websites add "Slugs" to the end of URLs?, it is not tackle your question, yet it gives your deeper insight on your understanding.
发布评论
评论(2)
如果您打算这样做,请记住添加
到
this-is-a-sample.html
,这样无论访问www.blog.com/:157
都会看到在引用this-is-a-sample.html
的规范标记中,不会因为内容重复而惩罚您的网站。这样做不会提高或降低您的网页排名。
在这里阅读有关规范标签的更多信息:
If you're going to do that, remember to add
To
this-is-a-sample.html
, so whatever accesswww.blog.com/:157
will look at the canonical tag referring tothis-is-a-sample.html
and won't penalize your site for having duplicated content.Doing this won't increase or decrease your page rank.
Read more about the canonical tag here:
扩展 Ben 的答案,你为什么不看看 StackOverflow 如何处理这个问题呢?
以您自己的线程为例:
https://stackoverflow.com/questions/4479453/adding-short-urls-to-a-blog-makes-seo-better-or-worse
类似于“不错的友好 URL”,而https://stackoverflow.com/questions/4479453/
是较短的一个,类似于您的www.blog.com/:157
现在,如果您打开此页面的源代码,您应该会看到 Ben 在上面详细阐述的
rel="canonical"
。该标签可确保搜索引擎将索引指定的标签。此外,建议这两个链接应该是可点击的,以便用户可以为规范链接添加书签。不要错过这个帖子:为什么有些网站在网址末尾添加“Slugs”?,这并不能解决您的问题,但它可以让您更深入地了解您的理解。Expanding Ben's answer, why do not you take a look at how StackOverflow handle this?
Take your own thread for example:
https://stackoverflow.com/questions/4479453/adding-short-urls-to-a-blog-makes-seo-better-or-worse
is resemble "nice friendly-URLs" of your blog, whilehttps://stackoverflow.com/questions/4479453/
is the shorter one, similar to yourwww.blog.com/:157
Now if you open this source of this page, you should see
rel="canonical"
that Ben elaborated above. This tag makes sure that search engines will index the assigned one. Moreover, it is advised that those two links should be clickable, so that users can bookmark the canonical one. Do not miss this thread: Why do some websites add "Slugs" to the end of URLs?, it is not tackle your question, yet it gives your deeper insight on your understanding.