Posted in:
Magento 2 Tutorials
How to set up 301 Redirect Programmatically in Magento 2
Are you looking for the best technique for How to Redirect 301 Programmatically? Then look no further! In this blog, We will give you knowledge step-by-step.
Before we dive into the 301 Redirect techniques for our previous blog, we were hoping you could learn a tutorial about Magento 2 New Relic Reporting . And our Announcement for Ecommerce, Switching ElasticSearch to OpenSearch, sparked your interest in learning more about Ecommerce.
Steps for URL Rewrites:
- Step 1: Login with your Admin panel
- Step 2: Select the Marketing option from the sidebar
- Step 3: Then go to the next step, click on SEO & Search > URL Rewrites
- Step 4: Select Add URL Rewrite button.
- Step 5: Create URL Rewrite: Select from the drop-down you want to create URL Rewrite.
- Step 6: Fill in the information:
- Store: Choose the store view to implement the URL Rewrite. This field is mandatory.
- Request Path: Set the path you want to be redirected to. This field is required.
- Target Path: Set the new path to which the old one should be redirected. And, This is a mandatory field.
- Redirect Type: Choose Permanent 301
- Description: Write the description for the redirection reason
- Step 7: If you are done with this configuration, click on the Save button.
Stay connected to our Blogs
May 5, 2022
Did you like this post?