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 (1 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 set the return path email in Magento 2
Added on Mon, Dec 31, 2018
How to disable maintenance mode in Magento
Added on Tue, Jan 29, 2019
What is Magento?
Added on Tue, Jan 29, 2019
How to enable Elasticsearch for your Nexcess Cloud account
Added on Fri, Feb 22, 2019
How to set up Magento 2 to use your SSL certificate
Added on Fri, Dec 28, 2018
How to optimize Magento performance
Added on Wed, Jan 30, 2019
How to enable CAPTCHA for user creation in Magento 2
Added on Mon, Feb 19, 2018
How to reset Magento 2 admin passwords
Added on Fri, Dec 28, 2018
How to change base URLs in Magento 2
Added on Wed, Jun 13, 2018
How to set up CDN access for Magento 2
Added on Wed, May 16, 2018