How to Create Category Rewrites in Magento 2


With the URL Rewrites tool, you can create both Product Rewrites, and CMS page even Category Rewirtes in order to redirect the vistors to the another URL instead of the previous address if there is any change of the category.

In addition, Magento 2 store owners can set multiple URLs that point to the same product. You can learn how to manage the multiple paths for SEO at Canonical Meta Tag.

Create Category Rewrites

  • Step 1: Add the Rewrite
  • Step 2: Update the Index
  • Step 3: Test the Results

Step 1: Add the Rewrite

  • On the Admin Panel, Marketing > SEO & Search > URL Rewrites.
  • In the upper-right corner, click on Add URL Rewrites.
  • From the dropdown list of Create URL Rewrites, choose “For Category” option.
  • In the category tree, find the category you want to redirect.

How to Create Category Rewrites URL Rewrite for Categories

  • In the URL Rewrite section, you can:
    • Set the Store to apply the rewrites if necessary.
    • In the Request Path field, insert the new URL key and suffix for the product.
    • Convert Redirect to Temporary (302) or Permanent (301).
    • Leave some description for the rewrite.

How to Create Category Rewrites Select Categories

  • Save to complete.

And now, you can see the new product rewrite at the top of the list.

Step 2: Update the Index

  • On the Admin Panel, System > Tools > Index Management.
  • Mark the Catalog URL Rewrites checkbox.
  • Choose Reindex Data for the Action.
  • Submit to update the index.

Step 3: Check the Results

Be careful to check the rewrite to ensure that it works perfectly. Beside, ensure that the URL you test goes directly to the intended category, rather than to a subcategory

Ref: Magento 2 User Guide

It comes to the end of tutorial: How to Create Category Rewrites in Magento 2.

Please leave comments if you have any questions, feedbacks.

Comments for How to Create Category Rewrites in Magento 2

You also may like these Magento 2 Extensions

One Step Checkout

13 reviews

Layered Navigation

5 reviews


5 reviews


7 reviews


10 reviews

Zoho CRM

no review

Store Locator

no review

Shop By Brand

no review