This guide will show you how to manage URL Rewrites in your Magento 2 template.
To create a redirect rule, please, do the following:
Log into your Magento admin panel.
Search for the Marketing button on the left and click it.
In the Marketing menu, click URL Rewrites.
After that click on the Add URL Rewrite button.
Leave the Create URL Rewrite dropdown list on Custom setting. Fill in the Store, Request Path, and Target Path fields.
The Request Path is the original path. The Target Path is the new path corresponding to the new web address. This will serve as the target of the redirect rule.
In the Redirect Type dropdown list, select either 301 or 302 according to your needs.
Click on a Save button. If you’ve made all the changes successfully – you’ll see The URL Rewrite has been saved message.
That’s it! Feel free to check the detailed video tutorial below: