Contact
Site: US UK AU |

How to write redirect (301) rules for Magento 2

How to write redirect (301) rules for Magento 2

Overview
This article shows how to write redirect rules for Magento 2 websites; much of the procedure will be familiar to users of Magento 1.

Take the following steps to write a redirect rule for your Magento 2 website:

  1. Log in to your Magento 2 administrative panel.

  2. In the main menu, click Marketing.

  3. In the Marketing menu, click URL Rewrites.

  1. If you are familiar with Magento 1.x, Magento 2 uses the same interface from this point forward. Click Add URL Rewrite .

  2. Leave the Create URL Rewrite drop-down list on its default setting, Custom. Fill 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.

  1. In the Redirect Type drop-down list, select either 301 or 302, as appropriate.

  2. Click Save. If successful, you will see the message, “The URL Rewrite has been saved.”

     

    For 24-hour assistance any day of the year, contact our Support Team by email or through the Client Portal.

Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
 
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
How to create Magento 2 dev sites
Added on Mon, Dec 31, 2018
How to optimize Magento performance
Added on Wed, Jan 30, 2019
How to configure Magento 2 cron jobs
Added on Tue, Mar 27, 2018
How to manage disk space in Magento
Added on Tue, Jan 15, 2019
How to change base URLs in Magento 2
Added on Wed, Jun 13, 2018
How to configure the return path email in Magento 2
Added on Mon, Dec 31, 2018
How to resolve CORS errors in Magento 1 or 2 multi-stores using a CDN
Added on Fri, Jan 25, 2019
How to enable CAPTCHA for user creation in Magento 2
Added on Mon, Feb 19, 2018
How to configure Magento 2 storefronts
Added on Mon, Dec 31, 2018
How to set up CDN access for Magento 2
Added on Wed, May 16, 2018