Bobcares

301 Redirect Magento Htaccess |In Simple Steps

by | Jan 19, 2023

Let’s see the steps to redirect 301 using Magento Htaccess. At Bobcares, we can handle your server-related issues with our Magento Development Services.

Redirect 301 using Magento Htaccess – Steps

The Hypertext Access/.htaccess file is a configuration text file that manages and permits the editing of directories and subdirectories. The search engines will then know that a new link replaces an old link by a permanent 301 redirection in the htaccess file. It is advised to do so in order to send visitors from an existing page to the new one.

Let’s look into the steps to the 301 redirect rule in Magento:

  1. Access the admin interface of the Magento 2 store.
  2. The Marketing module will appear on the left toolbar.
  3. Go to SEO & Search and select URL Rewrites.
  4. On the right top corner, select the Add URL Rewrite button.
  5. Select Custom from the ‘Create URL Rewrite’ drop-down menu.
  6. Then, from the Store drop-down list, choose Default Store View.
  7. Fill out the request Path field with the old URL (It will redirect to the new URL).
  8. In the Target Path field, type the target URL.
  9. From the Redirect Type drop-down option, select Temporary (302) or Permanent (301).
  10. In order to save the changes, click the Save button at the top. Once the URL Rewrite has been saved, a confirmation message will appear.

How to do it?

On web servers running the Apache Web Server program, find the htaccess configuration file in the root and add:

Redirect 301 [old URL] [New URL]

Example

301 redirect magento htaccess

Visitors and search engines will be redirected to the new URL once we’ve used this technique.

[Need assistance with another issue? We’re available 24/7.]

Conclusion

The article provides the steps to redirect 301 using Magento Htaccess. Here, we can add 301 redirections for the base URL in Magento 2.1 via .htaccess.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

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

Never again lose customers to poor
server speed! Let us help you.