Canonical URLs for CMS and Custom Pages for Magento 2

Set canonical URLs for CMS pages and custom landing pages in Magento 2.
Compatibility
2.4.9, 2.4.8, 2.4.7, 2.4.6, 2.4.5, 2.4.4, 2.4.3, 2.4.2, 2.4.1, 2.4.0, 2.3.7, 2.3.6, 2.3.5, 2.3.4
€0.00
per item
Email to a Friend

Enquire about this product

Description / Canonical URLs for CMS and Custom Pages for Magento 2

MAGENTO 2 · CMS · CUSTOM PAGES · CANONICAL

Specify the preferred URL for CMS pages and custom pages.

Kowal Canonical Custom Page

Add a Canonical URL while editing a CMS page or configure path mapping for a custom page. Manage settings at the Magento scope level without editing templates every time something changes.

Absolute and relative URLs · Path mapping · Store View

HOW IT WORKS IN PRACTICE

01 · You choose the preferred URL
You define the correct version of similar content.

02 · You complete the field or mapping
You configure the CMS page or the custom page path.

03 · You check the result in the page head
You verify rel='canonical' after refreshing the cache.

What does your store gain?

Explore the module's features, use cases, and settings.

Canonical URL for CMS pages and custom pages in Magento 2

Kowal Canonical Custom Page lets you specify the preferred URL for CMS pages and selected custom Magento 2 pages without editing templates.

It is a simple SEO tool useful when similar content appears under several URLs, when you create landing pages for campaigns, or when your custom Magento page does not have convenient rel='canonical' configuration.

CMS pages

Set the Canonical URL directly while editing the page in the Search Engine Optimization section.

Custom pages

Map custom page paths to selected absolute or relative canonical URLs.

Multistore

Adjust settings for a website or Store View when different storefronts require a different configuration.

Canonical organizes SEO signals — it is not a redirect

The canonical tag tells the search engine which version of similar content is preferred. It does not redirect the user and does not guarantee that Google will choose the specified URL. The module does not automatically detect duplicates — the decision about the canonical URL remains with the administrator.

Typical use cases

  • similar CMS pages,
  • landing pages prepared for campaigns,
  • URLs visited with tracking parameters,
  • custom pages created by additional modules,
  • different settings in multistore installations.

Configuration

For CMS pages, complete the Canonical URL field. For a custom page, add path mapping in the module configuration. You can use full HTTP/HTTPS URLs or relative store paths.

FAQ

Does canonical redirect the user?
No. It is a tag for the search engine, not an HTTP redirect.

Does the module detect duplicate content on its own?
No. The administrator consciously specifies the preferred URL.

Can I set a canonical for a CMS page?
Yes, directly while editing the CMS page.

Does the module support pages outside the CMS?
Yes, path mapping can be configured for selected custom pages.

Mapping format and path matching

Stores → Configuration → Kowal → Canonical Custom Page includes Enable and Custom page canonicals. Each row uses the format request-path|canonical-url, for example landing/summer|/landing/summer. The => separator is also supported.

Matching is exact for the normalized path, without a leading or trailing slash and without the query string. This is not a wildcard system or an automatic rule system for detecting similar pages.

Target URL and other SEO modules

Full HTTP/HTTPS URLs are preserved, while relative paths are converted to the store URL without the session ID. Other URI schemes are skipped by the normalizer.

The module adds the canonical through PageConfig. When using additional SEO extensions, check the resulting head to make sure pages do not receive conflicting tags. Setting a canonical does not change routing or the HTTP response.

Installation via Composer

Package kowal/module-canonical-custom-page, module Kowal_CanonicalCustomPage. After configuring access to the Kowal repository, install the package, enable the module, update Magento, and clear the cache. In production, include compilation and static content deployment according to your store process.

From configuration to result

1. You choose the preferred URL
You define the correct version of similar content.

2. You complete the field or mapping
You configure the CMS page or the custom page path.

3. You check the result in the page head
You verify rel='canonical' after refreshing the cache.

Landing page with campaign parameters

For the landing/summer page, you specify the preferred URL /landing/summer. The module converts the relative path to the store URL.

The mapping matches the path without query parameters. The customer stays on the visited URL, while the page head passes the specified canonical.

Organize the canonicals of your content pages

Want to adapt the module to your store? Ask about implementing Kowal Canonical Custom Page and discuss the configuration or any needed extensions.

More Information

Theme compatibility Luma / Blank, KOWAL

Questions and Answers

Does a canonical tag redirect visitors to a different URL?

No. The rel=canonical tag is a search engine hint about the preferred URL version. It is not an HTTP redirect.

Can the module set canonical URLs for Magento 2 CMS pages?

Yes. Canonical URLs can be configured for CMS pages without manually editing the template.

Can canonical URLs be set for custom Magento 2 pages?

Yes. The module maps selected custom page paths to a configured canonical URL.

Does the module automatically detect duplicate content?

No. The administrator deliberately specifies the preferred URL. Canonical configuration therefore remains under the control of the person responsible for SEO.

Can canonical settings be configured in multistore?

Yes. Settings can be adapted to the appropriate store scope when different storefronts need different canonical configurations.

Module Installation Instructions

Installation via Composer

Composer repository access credentials, the customer's email address and license token, will be sent to you by email after purchase. They are also available in the customer panel after logging in at kowal.store. Replace TWOJ_EMAIL_KLIENTA with your account's email address and TWOJ_TOKEN with the token you received. Run the commands in the Magento root directory.

composer config repositories.kowal composer https://repo.kowal.storecomposer config http-basic.repo.kowal.store 'TWOJ_EMAIL_KLIENTA' 'TWOJ_TOKEN'composer require kowal/module-canonical-custom-page

Complete the installation

After installing the package, update Magento and clear the cache:

php bin/magento setup:upgradephp bin/magento cache:flush

In a production environment, also run DI compilation and deploy static files according to your store deployment process.

Press to skip carousel

We found other products you might like!

Write Your Own Review
You're reviewing: Canonical URLs for CMS and Custom Pages for Magento 2
Your Rating:
Price
Quality
Support
loader
Loading...

You submitted your review for moderation.

Related Posts

Magento 2 technical SEO audit: URLs, robots, hreflang and JSON-LD

Magento 2 technical SEO audit: URLs, robots, hreflang and JSON-LD

3 min read 6 views
A practical Magento 2 SEO audit checklist: URLs, robots directives, XML sitemaps, languages, JSON-LD and feed freshness. Verify each fix with evidence.
Read more
Update cookie preferences