# Adding Canonical Redirects for SEO Optimization

**URL:** <https://meta.discourse.org/t/adding-canonical-redirects-for-seo-optimization/25547>\
**Category:** Product Support\
**Created:** [23. Februar 2015 um 01:08 UTC](https://meta.discourse.org/t/adding-canonical-redirects-for-seo-optimization/25547 "2015-02-23T01:08:40Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![adrian2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adrian2/32/122527_2.png) [@adrian2](https://meta.discourse.org/u/adrian2)\
**Post date:** [23. Februar 2015 um 01:08 UTC](https://meta.discourse.org/t/adding-canonical-redirects-for-seo-optimization/25547/1 "2015-02-23T01:08:40Z")

</div>

I apologize if there is an easy solution to this problem but I have searched this forum to no avail. I am trying to optimize our new Discourse forum for SEO, and it seems that multiple pages containing duplicate content can be accessed at different URLs, thus hurting search engine ranking by “splitting” the traffic for each duplicated page. So imagine we have some content at:

[forum.foo.com/c/uncategorized](http://forum.foo.com/c/uncategorized)

The issue is that this same exact page can also be accessed at:

[forum.foo.com/c/uncategorized/l/latest?category\_id=1&page=1](http://forum.foo.com/c/uncategorized/l/latest?category_id=1&page=1)

This means we need to add a canonical redirect from the second URL to the first by putting the tag ’ link rel=“canonical” href=“[http://forum.foo.com/c/uncategorized](http://forum.foo.com/c/uncategorized)” ’ in the page header when ever the URL “[forum.foo.com/c/uncategorized/l/latest?category\_id=1&page=1](http://forum.foo.com/c/uncategorized/l/latest?category_id=1&page=1)” gets loaded.

Is there any built-in support to do this in Discourse? This issue seems to really be hurting our search engine rankings as just about every category page has duplicate URLs at something like \*/l/latest?category\_id=1&page=1. I do not mind doing some minor tinkering in the ruby-rails backend to get this done, but we would prefer not to dive into any complex hacks.

---

_[View the full topic](https://meta.discourse.org/t/adding-canonical-redirects-for-seo-optimization/25547)._
