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 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.
3 Steps to create Category Rewrites in Magento 2
Step 1: Add the Rewrite
- On the Admin Panel,
Marketing > [SEO & Search](https://marketplace.magento.com/mageplaza-magento-2-seo-extension.html) > 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.

- In the URL Rewrite section, you can:
- Set the
Storeto apply the rewrites if necessary. - In the
Request Pathfield, insert the new URL key and suffix for the product. - Convert
Redirectto Temporary (302) or Permanent (301). - Leave some description for the rewrite.
- Set the

Saveto 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 Rewritescheckbox. - Choose Reindex Data for the
Action. Submitto 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
Recent Tutorials
Magento 2 get customer address custom attribute value
How to Install Magento Extension via Composer
Comments for Create Category Rewrites
People also searched for
- magento 2 change category url
- magento 2 category url
- magento 2 category url rewrite not working
- magento 2 category url rewrite
- magento 2 regenerate category url rewrites
- magento 2 redirect category to cms page
- magento 2 category link
- magento redirect category to cms page
- magento 2 url rewrite not working
- category url magento 2
- get category url magento 2
- magento 2 link to category
- magento 2 custom url rewrite not working
- magento 2 url redirect
- url key magento 2
- magento 2 url rewrites not working
- magento 2 url rewrite reindex
- magento category url
- magento 2 regenerate url rewrites
- magento 2 url rewrite
- magento 2 url rewrites
- url rewrite generator magento 2
- 2.2.x, 2.3.x
Stay in the know
Get special offers on the latest news from Mageplaza.
Earn $10 in reward now!