Shopping cart

How to Create Category Rewrites in Magento 2

Create Category Rewrites

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 in 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 in Magento 2

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. Besides, ensure that the URL you test goes directly to the intended category, rather than to a subcategory

Related Post

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

111 reviews

Layered Navigation

59 reviews

Gift Card

6 reviews

Reward Points

4 reviews


12 reviews

Shop By Brand

16 reviews