Setting up 301 redirects is very important if you change your URL structures or delete pages or products in case of Magento. Read more about 301 and 302 redirects here.
- Log in to the Magento Admin Panel
- Under “Catalog” in the top navigation, click on “URL Rewrite Management”
- Click on the orange button on the right-hand side of the page that says “Add URL Rewrite”
- Choose “Custom” from the “Create URL Rewrite” drop-down menu
- Complete the “URL Rewrite Information” form:
ID Path: oldurl.html (For example, if the old url is www.example.com/oldurl.html)
Request Path: oldurl.html
Target Path: newurl.html
Redirect: Choose “Permanent (301)”
Description: It is fine to leave the description box blank