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 badges
Add a comment  | 

1 Answer 1

Reset to default 1

In 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 badges
Add a comment  | 

1 Answer 1

Reset to default 1

In 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