# Homepage doesn't have canonical URL

**URL:** <https://meta.discourse.org/t/homepage-doesnt-have-canonical-url/50450>\
**Category:** Feature\
**Created:** [2016 年 9 月 21 日午後 7:34 UTC](https://meta.discourse.org/t/homepage-doesnt-have-canonical-url/50450 "2016-09-21T19:34:09Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [2016 年 10 月 21 日午前 5:43 UTC](https://meta.discourse.org/t/homepage-doesnt-have-canonical-url/50450/3 "2016-10-21T05:43:15Z")

</div>

The only possible reason I can see for this regarding the “home” page is for “link and ranking signals” when

> **[How to Specify a Canonical with rel="canonical" and Other Methods | Google...](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls?hl=en&visit_id=639159006115716940-22142312&rd=1)**
>
> When a site has duplicate content, Google chooses the canonical URL. Learn more about canonical URLs and how to consolidate duplicate URLs.

> Your server is configured to serve the same content for the www subdomain or the http protocol.

But this can be more easily achieved on an individual basis without touching any Discourse code.

> Set your preferred domain  
> Tell Google which version of your site’s URL you prefer for your domain:

---

_[View the full topic](https://meta.discourse.org/t/homepage-doesnt-have-canonical-url/50450)._
