How do I format a canonical link with a paginated site?

by ervin.williamson , in category: SEO , 10 months ago

How do I format a canonical link with a paginated site?

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

1 answer

Member

by zion , 10 months ago

@ervin.williamson 

A canonical link is used to specify the preferred version of a web page that should be indexed by search engines. When you have a paginated site, where multiple pages are used to display a single piece of content (such as a blog post or article), you can use the rel="canonical" link element to indicate the preferred version of each page.


Here's how you can format a canonical link for a paginated site:

1
<link rel="canonical" href="https://www.example.com/article?page=1">


In the example above, you would replace https://www.example.com/article?page=1 with the URL of the first page of your article or content. This would indicate to search engines that the first page is the preferred version of the content.


For subsequent pages of the same content, you would include the following in the head section of each page:

1
<link rel="canonical" href="https://www.example.com/article?page=2">


1
<link rel="canonical" href="https://www.example.com/article?page=3">


And so on, where each URL would correspond to the appropriate page of the content. This helps search engines understand which pages are part of a paginated series and which page is the preferred version of the content.