Installs: 11 203

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 4

Forks: 5

Open Issues: 2


2.1.2 2022-09-16 15:54 UTC

This package is auto-updated.

Last update: 2022-09-16 16:03:20 UTC


This module generates a canonical URL for every page of your shop. Once activated, you'll find a <link rel="canonical" href="..." /> tag in the header of your pages.


  • If the page URL is not rewritten, the canonical URL will contain all the URL parameters. Example for : For URL

    <link rel="canonical" href="" />

    Obviously, this is far from ideal. Consider activating URL rewriting !

  • When the page URL contains the script name (index.php), it will be removed from the canonical URL. Example, the canonical URL of is :

    <link rel="canonical" href="" />

    When a rewritten URL contains parameters, these parameters a removed. For, the canonical URL is :

    <link rel="canonical" href="" />
  • If the page URL contains a domain which is not the main shop domain, this domain is replaced by the main shop domain. For the canonical URL is :

    <link rel="canonical" href="" />



  • Copy the module into <thelia_root>/local/modules/ directory and be sure that the name of the module is CanonicalUrl.
  • Activate it in your thelia administration panel


Add it in your main thelia composer.json file

composer require thelia/canonical-url-module:~1.2.0


You just have to activate the module and check the meta tags of your shop.

The canonical will be generated automatically but you can define a canonical url in seo form for each item if you want override the generated url.