admin管理员组文章数量:1026989
I have WordPress blog with permalink /%category%/%postname%
it is OK when i have one category.
but when I add another, the post is available with two URL and i think its bad for seo
for Example:
This post is in two URLs. I prefer the first one. How can i do this?
I have WordPress blog with permalink /%category%/%postname%
it is OK when i have one category.
but when I add another, the post is available with two URL and i think its bad for seo
for Example:
https://example/Tourism/astara/museum-customs-home-belgians
https://example/Tourism/astara/historical/museum-customs-home-belgians
This post is in two URLs. I prefer the first one. How can i do this?
Share Improve this question edited Apr 25, 2019 at 17:12 norman.lol 3,2413 gold badges30 silver badges35 bronze badges asked Apr 25, 2019 at 16:25 meysam Zaremeysam Zare 13 bronze badges1 Answer
Reset to default 1In this case you want to set a canonical URL to tell search engines that the content is duplicated over more than one URL. The canonical URL is a <link>
tag which appears in the <head>
of your page, for example:
<link rel="canonical" href="https://example/Tourism/astara/museum-customs-home-belgians" />
You want to use this same URL for each of the different category URLs, telling search engines which is the main source post.
The easiest way to do this is using a plugin, such as Wordpress SEO. They also have a Knowledge base article which will help you to set these up for your posts.
I have WordPress blog with permalink /%category%/%postname%
it is OK when i have one category.
but when I add another, the post is available with two URL and i think its bad for seo
for Example:
This post is in two URLs. I prefer the first one. How can i do this?
I have WordPress blog with permalink /%category%/%postname%
it is OK when i have one category.
but when I add another, the post is available with two URL and i think its bad for seo
for Example:
https://example/Tourism/astara/museum-customs-home-belgians
https://example/Tourism/astara/historical/museum-customs-home-belgians
This post is in two URLs. I prefer the first one. How can i do this?
Share Improve this question edited Apr 25, 2019 at 17:12 norman.lol 3,2413 gold badges30 silver badges35 bronze badges asked Apr 25, 2019 at 16:25 meysam Zaremeysam Zare 13 bronze badges1 Answer
Reset to default 1In this case you want to set a canonical URL to tell search engines that the content is duplicated over more than one URL. The canonical URL is a <link>
tag which appears in the <head>
of your page, for example:
<link rel="canonical" href="https://example/Tourism/astara/museum-customs-home-belgians" />
You want to use this same URL for each of the different category URLs, telling search engines which is the main source post.
The easiest way to do this is using a plugin, such as Wordpress SEO. They also have a Knowledge base article which will help you to set these up for your posts.
本文标签: permalinksTwo URLs of one post is available
版权声明:本文标题:permalinks - Two URLs of one post is available 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745552188a2155681.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论