In the previous Magento tutorial, we have shown you the basic definition of the URL rewrites function in Magento 2 as well as how to configure it in the back-end menu. Today, we will continue showing you how to create URL rewrites (both Product Rewrites & Category Rewrites) step-by-step.

PRODUCT URL REWRITES

1st step: Create the rewrite

Go to the admin panel, navigate to MARKETING, and select the URL Rewrites under Search & SEO section.

(Admin Panel => MARKETING => URL Rewrites)



Click on the Add URL Rewrite button

Then, in the upper-lelf corner, choose For product option in Create URL Rewrite. After that, the page will be reloaded; here you will select the product that will be redirected to edit.

To continue, click on the Skip Category Selection button.

It’s time to add URL rewrite information. First, you must choose the store view where the URL rewrite is applied. Second, edit and add the new URL key for your item at Request Path field. Third, select the Redirect Type (Temporary/ Permanent) as you want. Fourth, write a short description about this change (optional). Remember to save the settings when you finish.

2nd step: Refresh the index

Go to the admin panel, navigate to SYSTEM, and select Index Management under the Tools section.

Check on the Catalog URL Rewrites and choose Reindex Data in Actions, submit to complete the selected action.

CATEGORY URL REWRITES

1st step: Create the rewrite

Go to the admin panel, navigate to MARKETING, and select the URL Rewrites under Search & SEO section.

(Admin Panel => MARKETING => URL Rewrites)



Click on the Add URL Rewrite button

Then, in the upper-lelf corner, choose For category option in Create URL Rewrite. After that, the page will be reloaded; here you will select the categpory that will be redirected.

Similar to product rewrites, next you need to add URL rewrite information. First, you must choose the store view where the URL rewrite is applied. Second, edit and add the new URL key for your category at Request Path field. Third, select the Redirect Type (Temporary/ Permanent) as you want. Fourth, write a short description about this change (optional). Remember to save the settings when you finish.

2nd step: Refresh the index (follow the same instruction for product rewrites)

See More:

How To Format SEO URL With Slashes in Magento?

How To Set Up Automatic Product Redirects in Magento 2?

How To Config Sitemap in Magento 2?

How To Use Flat Catalog In Magento 2?

5 Undeniable Benefits Of Magento Monthly Support Packages

(1 votes, average: 5.00 out of 5)

votes, average:out of 5)