How to Create URL Rewrites in Magento 2
Magento 2 allows store owners to create URL rewrites to improve SEO, enhance user experience, and make URLs more readable. This feature enables you to modify product, category, or CMS page URLs without affecting their functionality. In this guide, we’ll walk you through the process of creating and managing URL rewrites in Magento 2.
Steps to Create URL Rewrites in Magento 2
1. Access the URL Rewrites Section
Log in to your Magento Admin Panel.
Navigate to Marketing > SEO & Search > URL Rewrites.

Click Add URL Rewrite to create a new rewrite.

2. Select the Entity Type
You can rewrite URLs for:
- Products – Change product URLs while keeping them linked to the correct category.
- Categories – Customize category URLs for better SEO.
- CMS Pages – Modify page URLs to be more user-friendly.
3. Configure the URL Rewrite
Choose Request Path: Enter the current URL that needs to be rewritten.
Specify Target Path: Enter the new destination URL.
Redirect Type: Select Permanent (301) or Temporary (302) based on your needs.
Store View: Choose the store view where the rewrite applies.
Click Save to apply changes.
4. Test the URL Rewrite
Open the old URL and check if it redirects to the new one.
Clear the cache using:
php bin/magento cache:flush
Magento 2 URL rewrites allow you to enhance website navigation and optimize your store for search engines. Whether you’re restructuring URLs or fixing broken links, this feature helps maintain a seamless user experience.
Follow us for the more helpful posts!
We hope this is a useful post for you.
You can read more useful posts like How to Fix the “No Alive Nodes Found in Your Cluster” Error in Magento 2.
Thank you for reading!