Mobile app version of vmapp.org
Login or Join
Shelley277

: Implementing canonical URLs for pages using filtering I'm implementing a filtering option on my website where users can post and upvote images. The filtering options are: trending (by default)

@Shelley277

Posted in: #CanonicalUrl #DuplicateContent #Pagination #Seo #UrlParameters

I'm implementing a filtering option on my website where users can post and upvote images. The filtering options are: trending (by default) and new.

The URLs are like this:




example.com/tags/sunset/ ← Trending images (ALL images with more than 5 upvotes)
example.com/tags/sunset/?sort=new ← New images (ALL images ordered by descending date)


I'm using canonical URLs in order to avoid duplicate content. For example the two URLs above will have the same canonical URL (URL with trending content):

example.com/tags/sunset/


However I'm having a problem with the pagination canonical URLs.

There are 10 images per pages.

Let's say the sunset tag have 25 images (1,2,3 pages):

example.com/tags/sunset/?sort=new&page=3


but only 15 are trending (1,2 pages):

example.com/tags/sunset/?page=2


The canonical URL for the URL filtered with new content (all image) will be:

example.com/tags/sunset/&page=3


However this URL will return an error 404 because there are not 3 pages of trending content for the tag sunset.

What can I do to avoid this issue?

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Shelley277

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme