How To Create 301 Redirect In Magento 2

When changing or disabling a URL, the customer will encounter 404 Not Found when accessing it. This will cause customers to leave without finding the URL they want to visit. Not only that, it also affects your SEO URL, causing you to re-SEO everything from scratch. In order for that to not happen, in this post, I will guide you How To Create 301 Redirect In Magento 2.

What Is 301 Redirect?

The HyperText Transfer Protocol (HTTP) 301 Moved Permanently redirect status response code indicates that the resource requested has been definitively moved to the URL given by the Location headers. A browser redirects to this page and search engines update their links to the resource.

The use of 301 redirects is very helpful to you. The new link can inherit the full SEO power of the old link, while the redirects get customers to the URL they want, limiting leaving your store increases the bounce rate of your store.

Steps To Create 301 Redirect In Magento 2

Step 1: Login to Admin Panel.

Step 2: Choose MARKETING -> SEO & Search -> URL Rewrites.

Choose URL Rewrites in menu on the left sidebar

Step 3: Click Add URL Rewrite button.

Click Add URL Rewrite

Step 4: Set Create URL Rewrite to Custom.

Set Create URL Rewrite to Custom

Step 5: Fill to URL Rewrite Information.

Fill to URL Rewrite Information
  • If you have multiple store views, select the Store where the rewrite applies.
  • In the Request Path field, enter the URL key and path—if applicable—of the product, category, or CMS page that is to be redirected.
The Request Path must be unique for the specified store. If there is already a redirect that uses the same Request Path, you will receive an error when you try to save the redirect. The previous redirect must be deleted before you can create a new one.
  • In the Target Path field, enter the URL of the destination. If the target is located on another website, enter the fully qualified URL.
  • Set Redirect Type to one of the following:
    • Temporary (302)
    • Permanent (301)
  • For your reference, enter a brief Description of the rewrite.

Step 6: Click Save button when complete.

Click Save button

You can read more useful articles like How To Add Zendesk (Zopim) Live Chat In Magento 2.

Follow us for the more helpful posts!

We hope this is a useful post for you.

Thank you for reading!

4.5 2 votes
Article Rating

Aaron LX

Aaron is a passionate writer, crazy about shopping, eCommerce and trends. Besides his outstanding research skills and a positive mind, Aaron eagerly shares his experience with the readers.

Leave a Reply or put your Question here

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x