How to remove a duplicate title tag and meta description tag with canonical link

给你一囗甜甜゛ 提交于 2019-11-30 21:02:45

问题


I have run SEO tool for my website, it showed that I have a duplicate title tag and meta description tag, both are in "domain.com/" and "/index.html" , they are the same file. How do I use Canonical Link to remove the duplicate tags ? Please help. Thanks.


回答1:


if it's showing up just in SEO software don't worry about it, Google's smart enough to know it's one page




回答2:


You're coming across a classic duplicate-content issue.

The quickest way to get around this is to edit your index.html page markup and include a canonical link within the <head> of your page.

Try this:

<link rel="canonical" href="http://your-domain.com/" />

What this does is tell the search engines that the two URLs (the domain root, and /index.html) are the same page and that it should only index the domain.com/ version.

This won't stop people being able to still access the same page via /index.html and just domain.com/, but it should remove the index.html version from the search engine indexes fairly quickly.

One very important thing to bear in mind: you need to ensure that you don't drop this link into a common/shared page template, ensure it only appears in your index.html file - otherwise you'll end up telling the search engines that all pages should be considered duplicates of the home page!

Note: although this will resolve the issue for you, it may well take some time before the changes are reflected in your SEO software (or Google Webmasters). You have to wait until the search engines next index your website and recognize the changes, which could be up-to several weeks.



来源:https://stackoverflow.com/questions/17021120/how-to-remove-a-duplicate-title-tag-and-meta-description-tag-with-canonical-link

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!