10 Step Guide to Implement 301 & 302 Redirect Rules in Magento 2

Magento 2 redirect readies your store to become better compatible for search engine crawling. Web developers often rely on redirects to forward a user from a specific URL to another one where relevant content is available.

With Magento 2 redirect to url shifting from domain to domain, enabling HTTPS or simply diverting the user to a new web page that is more SEo friendly is easier.

301 & 302 redirects

With Magento 2 url rewrite you can set up Magento redirect 301 or Magento redirect 302 straight from the admin panel.

In this brief step-by-step guide, we tell you how it is done.

Step 1:

Log into your Magento 2 Store Admin panel
Magento login

Step 2:

Click on ‘Marketing’ module on the left toolbar
Marketing

Step 3:

Under SEO & Search -> click on URL Rewrites
URL Rewriters

Step 4:

Click the Add URL Rewrite button located on the right top corner
Add URL Rewrite

Step 5:

From the ‘Create URL Rewrite’ drop-down menu, select Custom as the option
Choose Custom

Step 6:

Next, select Default Store View from the Store drop-down list
Default Store View

Step 7:

Enter the old URL (which needs to be redirected to the new URL) in the Request Path field

Checkout – How Magento URL Redirect from Controller

Request Path

Step 8:

Enter the target URL (the new destination URL) in the Target Path field
Target Path

Step 9:

Choose the redirect type as Temporary (302) or Permanent (301) from the Redirect Type drop down menu
Redirect Type

Step 10:

Click the Save button on the top to save the changes made. A confirming messaging indicating the URL Rewrite has been saved will pop up.
Save

Magento 2 redirect from model to a new URL will serve beneficial in many aspects. We hope with this blog you will be able to redirect URLs from their old locations to new locations easily. Let us know if you have any queries on the same.

Realated Posts

6 thoughts on “10 Step Guide to Implement 301 & 302 Redirect Rules in Magento 2

  1. Dennis

    Hey Ganesh, thanks so much for these redirect tips. Sometimes Magento can get really tricky. This was very helpful on redirecting 301 & 302 redirects on magento 2 platform.

    Thanks,
    Dennis

    • Ganesh Narayan

      Hello Dennis,

      Great to hear from you! Hope it helped you on implementing the 301 & 302 redirects. Also check our recent updates.

      Thanks!

  2. Iram Abel

    The post clearly explained the 301, 302 redirect in magento admin panel, Surely this tutorial will be more helpful for non technical person aswell.

    • Ganesh Narayan

      Dear Imran,

      Hope this tutorial helped you on handling the 301 & 302 redirects. Keep an eye on more updates.

      Thanks!

  3. Gert Spaepen

    With these stepwise guide, anyone can easily implement the magento URL rewrite without any assistance. Valuable info

    • Ganesh Narayan

      Dear Gert,

      Great to see you here and thanks for your valuable comments. Hope it helps you to implement magento 2 redirects.

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code lang=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" extra="">