Skip to main content

How to configure canonical rewrite

This page explains how to configure a canonical rewrite. A canonical rewrite is a useful feature in cases where generated canonical links don't meet the requirements and need to be edited.

To create a canonical rewrite go to Marketing -> Canonical rewrite and click Add canonical rewrite button.

1. Define general information

Set the URL that will be a canonical in Canonical URL configuration; use the full path, otherwise, the rewrite may not work. Next, set in which store views this rewrite will work with the Visible in store view configuration. To enable the rewrite, switch the Is active slider to Yes.

2. Configure conditions

Define on which pages the rewrite will be triggerred by adjusting Rule conditions and/or specifying the regular expression in the Check URL for regular expression configuration.

3. If required, fill in additional information

Set a higher Sort order for this rewrite to give it higher priority (in case two rewrites can be applied to the page). Additionally, you may leave Comments that describe the purpose of this rewrite or contain other details.

4. Implement changes

Click Save button and clean Magento cache to ensure that canonical rewrite has been applied to your store's pages.
Saved canonical rewrite is automatically added to the all canonical rewrites list, where it can be selected and edited.
Refer to canonical rewrite manager page to know the purpose of configurations.