Magento 2 : category Url Rewrite to Cms page

Magento 2 : category Url Rewrite to Cms page

August 29, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Magento 2 : category Url Rewrite to Cms page

Magento 2: Redirecting Category URLs to CMS Pages After Indexing

Are you facing issues with Magento 2 category URL rewrites not persisting after indexing? You’re not alone! This is a common problem that many developers encounter while trying to redirect categories to custom CMS pages. In this post, we’ll walk through the process step-by-step and ensure your redirects stay put even after reindexing.

Step 1: Create or Choose Your Target CMS Page

First things first, make sure you have an active CMS page where you want to redirect your category. To create a new one:

  1. Navigate to Content > Pages in the Magento admin panel.
  2. Click on Add New Page.
  3. Fill in the required details like Title, Content, etc.
  4. Save and preview the page.

Step 2: Configure the URL Rewrite

Now let’s set up the URL rewrite for your category:

  1. Go to URL Rewrite under Marketing > SEO & Search.
  2. Click on Add URL Rewrite.

For a specific category:

  • In the Request Path, enter the relative path of the category (e.g., /category-name).
  • In the Target Path, select CMS Page and then choose your target CMS page from the dropdown.

For all subcategories:

  • Use wildcards in the request path, e.g., /category-name/*.
  • Follow the same steps for Target Path as above.

Step 3: Save and Index

Click on Save to create the rewrite. Next, you need to reindex your system:

  1. Go to System > Index Management.
  2. Click on Select All and then Reindex.

At this point, your redirects should be in place. However, some users report that the redirects still don’t work after indexing due to Magento’s caching mechanisms.

Step 4: Flush Cache and Check

To ensure all changes are live:

  1. Go to System > Cache Management.
  2. Select all cache types.
  3. Click on Flush Cache.

After flushing the cache, refresh your Magento storefront in a new incognito/private window (to avoid browser caching). Now, when you access your category URL or use the URL rewrite directly, it should redirect to your target CMS page.

When All Else Fails

If you’re still facing issues even after following these steps, there could be additional factors at play:

  • Third-party Extensions: Check if any third-party extensions are interfering with Magento’s core functionality. Try temporarily disabling them to see if the problem persists.

  • Server Configurations: Ensure that your server is configured correctly and doesn’t have any rewrite rules conflicting with Magento.

Final Thoughts

Redirecting category URLs to CMS pages in Magento 2 requires a careful balance of configuration and indexing. Always remember to flush the cache after making changes, and ensure your server environment is optimized for Magento’s performance.

If you’re looking for professional assistance or want to explore advanced SEO strategies for your Magento store, feel free to reach out to our team at Laravel Company. We specialize in Magento development, optimization, and custom solutions tailored to your business needs.

Stay tuned for more tips on maximizing Magento’s SEO capabilities!

Magento 2 Catalog Indexing Admin

Our network