# Overriding automatically created canonical tag?

**URL:** <https://forums.concretecms.org/t/overriding-automatically-created-canonical-tag/3872>\
**Category:** Using Concrete / Help\
**Created:** [August 30, 2022, 2:15pm UTC](https://forums.concretecms.org/t/overriding-automatically-created-canonical-tag/3872 "2022-08-30T14:15:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mandakos](https://forums.concretecms.org/user_avatar/forums.concretecms.org/mandakos/32/3571_2.png) [@mandakos](https://forums.concretecms.org/u/mandakos)\
**Post date:** [August 30, 2022, 2:15pm UTC](https://forums.concretecms.org/t/overriding-automatically-created-canonical-tag/3872/1 "2022-08-30T14:15:00Z")

</div>

There is a setting in Concrete where you can make canonical tag ( `<meta rel="canonical" href="...">`) appear automatically to every page. But is it possible to override it from the page’s settings?

It’s good that every page has automatically self-referencing URL, but for some pages might have a need to customize the canonical url.

---

<div class="post-metadata">

**Author:** ![hutman](https://forums.concretecms.org/user_avatar/forums.concretecms.org/hutman/32/6198_2.png) [@hutman](https://forums.concretecms.org/u/hutman)\
**Post date:** [August 30, 2022, 3:15pm UTC](https://forums.concretecms.org/t/overriding-automatically-created-canonical-tag/3872/2 "2022-08-30T15:15:18Z")

</div>

For a particular page you can go into the Page Settings → Location and add a different URL and mark it as Canonical.

If you’re trying to adjust the settings for duplicate content issues due to pagination/searching that’s not currently possible but there is a discussion about it here - [https://github.com/concretecms/concretecms/issues/9007](https://github.com/concretecms/concretecms/issues/9007)

---

<div class="post-metadata">

**Author:** ![mandakos](https://forums.concretecms.org/user_avatar/forums.concretecms.org/mandakos/32/3571_2.png) [@mandakos](https://forums.concretecms.org/u/mandakos)\
**Post date:** [August 30, 2022, 6:03pm UTC](https://forums.concretecms.org/t/overriding-automatically-created-canonical-tag/3872/3 "2022-08-30T18:03:39Z")

</div>

Thanks! I’ve been thinking that canonical url issue with blog topics earlier, now I know that is not solved yet.

Problem at the moment was little different. Our client was asking if they could do something like this with Concrete: They have two pages, article and product, which have almost identical content. They would like to have the product page shown in the Google search results instead of article. But both pages need to be accessible from the website, so adding a new location as canonical is not solving this. Any ideas?

I’m actually not so sure if this even is a good practice to use canonical tag.

---

<div class="post-metadata">

**Author:** ![mnakalay](https://forums.concretecms.org/user_avatar/forums.concretecms.org/mnakalay/32/6276_2.png) [@mnakalay](https://forums.concretecms.org/u/mnakalay)\
**Post date:** [August 31, 2022, 9:46am UTC](https://forums.concretecms.org/t/overriding-automatically-created-canonical-tag/3872/4 "2022-08-31T09:46:02Z")

</div>

To do that you’d have to do 2 things:

- mark the page so it is not added to the site’s sitemap
- assuming there is a Google account from which this website is tracked, ask for the article page to be removed from their index

---

<div class="post-metadata">

**Author:** ![mandakos](https://forums.concretecms.org/user_avatar/forums.concretecms.org/mandakos/32/3571_2.png) [@mandakos](https://forums.concretecms.org/u/mandakos)\
**Post date:** [August 31, 2022, 11:07am UTC](https://forums.concretecms.org/t/overriding-automatically-created-canonical-tag/3872/5 "2022-08-31T11:07:03Z")

</div>

As far as I know, this method is not “permanent”, as Google bots may crawl to the page even if it is not in a sitemap and index it anyway, and the Search Consoles removal tool doesn’t permanently delete the page from index. But probably this is still the best way to deal with this, thanks for the tip!

---

<div class="post-metadata">

**Author:** ![JohntheFish](https://forums.concretecms.org/user_avatar/forums.concretecms.org/johnthefish/32/3767_2.png) [@JohntheFish](https://forums.concretecms.org/u/JohntheFish)\
**Post date:** [August 31, 2022, 11:44am UTC](https://forums.concretecms.org/t/overriding-automatically-created-canonical-tag/3872/6 "2022-08-31T11:44:53Z")

</div>

If you need a second (and third) line of defence after @mnakalay’s solution above, You can specify the pages not to index in your site’s robots.txt file.

Within Concrete you can also use my Conditional Redirect attribute. Configure it to return a 301 redirect when the user agent string identifies the googlebot.

> **[Conditional Redirect - Concrete CMS](https://marketplace.concretecms.com/marketplace/addons/conditional-redirect/)**
>
> A conditional redirect attribute checks a condition and redirects to another page if the condition is / is not met.
