Skip to content

Magento 2 – empty URL Key for home page

Our site home page URL is https://example.com

But the corresponding CMS Page in Magento 2.4.4 has home as the URL Key.

As a result, the home page can also be browsed at https://example.com/home

We do not want to allow it.

Things we tried:

  1. Set the URL Key to empty
    • Result: This identifier is reserved for "CMS Home Page" in configuration.
  2. Set the URL Key to /
    • Result: This identifier is reserved for "CMS Home Page" in configuration.
  3. Set a URL Rewrite, from home to /
    • Result: Request Path for Specified Store already exists.

So what? Are we condemned to have the home page also browsable from an arbitrary URL?