The Most Popular Extension Builder for Magento 2

With a big catalog of 224+ extensions for your online store

Magento 2 301 Redirect: Everything You Need to Know

For webmasters or developers, the 301 redirect is actually not a new term. In fact, it’s an integral part of a process when you want to create a product, category, and custom relocations for any page on your online store.

So what’s a Magento 301 redirect, its benefits, and opportunities for an eCommerce site?

In this post, we will take you through all its aspects. Most importantly, how to create a Magento 301 redirect from the admin panel as well.

Are you ready? Let’s dive in!


SEO

SEO for M2

Drive more traffic to your online store and boost your rank on search engines

Check it out!


Table of Contents

Magento 301 Redirects: Definition, When to Use, and Its Benefits

Definition of Magento 301 Redirects

Magento 301 redirect is a permanent way to forward bots and visitors to a new URL, transferring link equity in the process. Neglecting 301 redirects may result in 404 errors, negatively impacting your site’s crawling, indexing, and Google ranking.

What's a Magento 301 redirect?
What's a Magento 301 redirect?

When to Use

Marketers often use this type of redirect for various scenarios, including:

  • Moving from an old website to a new domain without losing SEO impact (e.g., from “abc.tk” to “abc.com”).
  • Seamlessly merging 2 or more websites into one.
  • Migrating a site to a new platform (e.g., from Magento 1 to Magento 2 or from Shopify to Magento).
  • Making changes to the site’s menu, product attributes, or structure updates.
  • Directing traffic from multiple URLs to a preferred destination for SEO or marketing purposes.
  • Conducting a migration from HTTP to HTTPS.
  • Dealing with duplicate content issues on the website that could affect Google rankings.

The benefits of using Magento 301 redirects

Using 301 redirects on your website brings various benefits, including:

  • Ensuring visitors and crawlers don’t encounter 404 error pages when content is moved to a new URL. They will be automatically redirected to the corresponding new page.
  • Achieving great SEO results by keeping visitors engaged and redirecting them to pages with more relevant content.
  • Transferring about 95% of link equity from the redirected page to the new one.
  • Signaling search engines to delete the old URL and replace it with the new one, improving indexation.
  • Minimizing the negative impact of 404 errors, which could cause your page to be dropped from search engine indexes.
  • Avoiding the loss of traffic from press releases, social media posts, or forums containing outdated links leading to 404 errors.
  • Improving user experience since 404 errors have a negative impact on website usability.

Magento 301 and 302 Redirects: Definitions, When to Use Each, Impacts on SEO

Definitions and usage of 301 Redirect vs. 302 Redirect

Each redirect serves specific purposes, but they are often confused when redirecting users and search engines to different URLs.

It’s crucial to choose the right type to maintain rankings and preserve your positive reputation built through backlinks and content creation.

301 Redirect: For permanent moves of a page to a new location, the previous page is replaced, and the new page appears in search results.

302 Redirect: Temporary redirection for a limited time until the URL is restored, used for temporary changes.

Reasons for Using 302 Redirects Instead of 301:

  1. Conduct A/B testing to improve webpage functionality or design.
  2. Gather client feedback on a new page without affecting the current site ranking on Google.
  3. Update a webpage while providing a consistent browsing experience for visitors.
  4. Redirect temporarily unavailable or seasonal products to the nearest alternative to keep customer engagement.
  5. Create temporary “special offer” landing pages.

302 redirects serve as a temporary solution for web developers to make changes to a webpage without impacting the site’s overall SEO performance.

SEO impacts of 301 Redirects vs. 302 Redirects

Using Magento 301 Redirects:

  • Google removes the old page from its index and transfers link equity to the new page, maintaining SEO rankings and preventing traffic decline.
  • It should be used for permanent changes, as search engines take time to recognize 301 redirects and credit the new page with rankings.
  • Content transfer is complex when changing the web’s domain, requiring careful checking.

Using Magento 302 Redirects:

  • Google keeps the original page in its index, and no link equity is transferred to the redirected URL.
  • The search engine treats the new location as temporary, continuing to index the old URL.
  • Incorrectly using 302 for permanent transitions can divide link popularity, hurting search rankings.
  • Misconfigured redirects may confuse search engines, leading to traffic loss, although visitors usually don’t notice the difference between 301 and 302 redirects.
The differences between 301 redirects and 302 redirects
The differences between 301 redirects and 302 redirects

Many people misunderstand these 2 redirects regarding sending users and search engines to a different URL from the requested one. Each comes with its own usage purposes.

That being said, search engines sense the different types of redirects and handle them differently.

Selecting the correct redirect type ensures your current rankings and the positive reputation you’ve built via all backlinks and content creation.

301 redirects vs. 302 redirects: Differences in the definition

  • 301 redirect: Used when any page on your site has been permanently moved to a new location. It means that a new page will replace the previous one and is shown in your search results

  • 302 redirect: A temporary redirect that navigates users and search engines to the new page for a limited time until it’s removed. Used when a URL is being changed temporarily

When should you use 302 redirects?

There are times when a web developer uses a 302 redirect instead of a 301 redirect, including:

  • Conduct A/B testing for webpage improvement on functionality or design

  • Collect clients’ feedback on a new page without affecting the web’s current site ranking on Google

  • In the process of updating a webpage but still want to give the web’s visitors a consistent browsing experience in the meantime

  • When a product of yours is temporarily out of stock or seasonal, you will want to redirect it to the nearest alternative to keep customers’ engagement

  • Temporary “special offer” landing pages

The 302 redirects refer to a temporary solution. Web developers use it to make some changes on a webpage without impacting the whole site’s SEO performance.

301 redirects vs. 302 redirects: Impacts on SEO

In cases, you use a Magento 301 redirect:

  • Google will remove their old page from their index, and the old page’s link equity is transferred to the new one. This type of redirect is better for SEO performance than the 302 since it maintains the web’s ranking and prevents search traffic decline as well

  • It should only be used if it is a permanent change. The search engines also need much more time to recognize the Magento 301 redirects, thus probably credit the new page with rankings

  • The content transfer is more complicated when it comes to changing the web’s domain. It takes you a significant amount of time to check them all correctly

In cases you use a Magento 302 redirect:

  • Google remains your original page on its index. No value or link equity is transferred to the redirected URL

  • The search engine will continue to index the old URL and consider the new location as temporary

  • When you use 302 instead of 301 for permanent page transition, link popularity might be divided between 3 URLs, thus hurting their search rankings on Google

If the wrong type of redirect has been set up, search engines may become confused, resulting in traffic loss. In fact, website visitors actually don’t notice the difference between 301 redirects and 302 redirects.

Site Audit Services

Mageplaza offers FREE site health check (15hrs) to help you identify any website flaws & weaknesses and fix them before they start costing you a fortune.

Explore More
Site Audit Services by Mageplaza

How to create 301 redirects in Magento 2

Create 301 redirects with Magento’s built-in Custom URL Rewrite

Below are 3 easy steps for you to set up 301 redirects on Magento 2 websites.

Step 1: Collect old URLs and create a 301 redirect map

Basically, this step is when you collect and write down all the old URLs and where they redirect to. The action’s purpose is to help you avoid unwanted mistakes.

Most importantly, you can organize your Magento 2 URLs when using 301 redirects more effectively and efficiently. We advise you to write all mapping URLs onto a Google spreadsheet for convenience.

Step 2: Create 301 redirect with Custom URL Rewrites in Magento 2

  • Log in to your admin account on Magento 2

  • Navigate to Marketing > SEO & Search > URL Rewrites > Click on the “Add URL Rewrite” button in the top-left corner

Click on the Add URL Rewrite button to start creating a 301 redirect
Click on the Add URL Rewrite button to start creating a 301 redirect

Magento allows merchants to generate URL rewrite for items, categories, CMS pages, and custom URLs. You can select the URL types needed to redirect from the dropdown list on the settings page.

If you select Create URL Rewrite = For category/ For product/ For CMS page, the system will let you choose a specific category/ CMS page/ product that requires changes.

The settings section of a new URL Rewrite at the store backend
The settings section of a new URL Rewrite at the store backend

Back to the settings of a new URL Rewrite in the Magento store’s backend. Here, enter the required information in the field accordingly, particularly:

  • Choose Create URL Rewrite = Custom

  • Store: Select your wanted store view where you’re about to implement the URL Rewrite

  • Request Path: Enter in this field the URL of the page that you want to use the 301 redirects (the old web page) without the domain name - For instance, your URL is “https://www.example.com/abc.html,” just need to enter “abc.html”

  • Target Path: Fill in the new page’s URL without the domain name, just like the above field. Note: This part will be automatically filled if you select Create URL Rewrite = For category/ For CMS page/ For product earlier

  • Select Redirect Type = Permanent (301)

  • Description (optional): Enter a short description of why you use 301 redirect

  • Once completed, click on the Save button in the top-right corner. You can see the new URL rewrite when returning to the main working screen of Magento’s URL Reviews

The main screen of Magento’s URL Rewrites
The main screen of Magento’s URL Rewrites

Step 3: Conduct Magento 301 Redirect test

To make sure nothing can go wrong, having a test after setting the 301 redirects is essential. You can:

  • Go to your store home page and try to open the old web page

  • Or search for the old URL on Google’s searching bar

If you successfully implement the 301 redirects on that web page, you will be redirected to the new page instead of the original one.

Create 301 redirects with Magento 2 Seo Redirect extension

The all in one SEO solution of Mageplaza
The all in one SEO solution of Mageplaza

For those who’re searching for an automatic solution on handling a ton of 301 redirects at the same time. This module helps your transition to new URLs more smoothly and conveniently.

Notable things about Magento 2 SEO Redirect:

  • Enable the admin to replace an old URL via pop-ups

  • Automatically redirect customers from wrong or old URL to the home page

  • Enable both 301 and 302 redirects at the store’s backend

  • Update the URL redirection in the URL Rewrite information form automatically

In fact, SEO Redirect is a minor feature of Mageplaza’s SEO solution for Magento 2 stores.

Along with its ability to manage and handle 301 and 302 redirects, this module comes with a wide range of other outstanding features focusing on improving SEO performance.

The bottom line!

These are all of the most important things you should know about Magento 301 redirects. We hope this article is helpful for you.

If you have any questions, please feel free to let us know. Thanks for reading!

Image Description
Sam is the CEO & co-founder of Mageplaza, a company established to support Magento merchants with different powerful tools and resources. Sam Nguyen is also the CEO & founder of Avada Commerce, an e-commerce solution provider headquartered in Singapore – aiming to support more than a million online businesses to grow and develop.
Website Support
& Maintenance Services

Make sure your store is not only in good shape but also thriving with a professional team yet at an affordable price.

Get Started
mageplaza services
x
    Subscribe

    Stay in the know

    Get special offers on the latest news from Mageplaza.

    Earn $10 in reward now!

    Earn $10 in reward now!

    comment
    iphone
    go up