How to Add a Product, Category or Custom Redirect

As pages on your site are created, updated or removed, it may be necessary to set up URL redirects so as to ensure customers are able to find the information that they need, and for the site to maintain good SEO status. 

Magentos URL redirect tool can be used to create redirects from and to any page in your store. Once a redirect is created, all links which were previously pointing to the original page will be seamlessly redirected to the new address. 

Setting up a redirect is simply the process of forwarding one URL to another. In Magento, you can set up three kinds of redirects: 

  • Product
  • Category
  • Custom (CMS pages)

In the how-to's below the 'old' url or the url that you would like to be directing people away is referred to as the Request URL. In contrast, the 'new' url or the URL that you wold like to be directing customers to will be referred to as the Target URL.

 

How to set up a Product Redirect

Note: Before you begin setting up a product redirect, it is easiest if you first make a note of the product ID of the target or destination product.

  1. In admin, navigate to Catalog > URL Rewrite Management, and click +Add URL Redirect.
  2. In the Create URL Rewrite: dropdown, select For Product
  3. From the presented list, find and select the product that you want to set up the redirect for (the request url, or the product that you want customers to be redirect away from), and click to open.
  4. At the bottom of the next screen (Select Category Tree screen), click Skip Category Selection.
  5. Within the URL Rewrite information tab, you should see the following information populated:
    • Type: Custom
    • ID Path: Enter a unique identifier for this rewrite (used for admin purposes only)
    • Request Path: This should be the URL of the request product
    • Target Path: This should read 'catalog/product/view/id/xx'. *You will need to update the 'xx' with the ID of the destination product (product you want customers to be redirected to
    • Redirect: By default this dropdown will be set to No, but to put the redirect into effect you will need to set it to either Temporary (302) or Permanent (301)
    • Description: Enter a descriptive description or reason for the redirect as required.

6. Once happy with your product redirect, click Save.

Note: If you are seeing a delay in your redirect working on the frontend (even after a CTRL +F5 for a full refresh) you may need to navigate to System > Index Management and refresh the Catalog URL Rewrite index.

 

How to set up a Category Redirect

Note: Before you begin setting up your redirect, it is easiest if you first make a note of the category url of what the Request and Target path will be for your category redirect. The Category IDs can be found by navigating to Catalog > Manage Categories and clicking into the category (the ID will then appear beside the Name of the category). Make note of both the request and target category ID before proceeding.

  1. In admin, navigate to Catalog > URL Rewrite Management, and click +Add URL Rewrite.
  2. Ensure that the Create URL Rewrite dropdown is set to For Category (should be by default).
  3. In the Select Category section, click on the request category (category you would like customers to be redirected away from).
  4. This should then load the URL Rewrite Information page. On this page, you should see the following information populated:
    • Type: Custom
    • ID Path: Enter a unique identifier for this rewrite (used for admin purposes only)
    • Request Path: This should be the URL of the request category.
    • Target Path: This should read 'catalog/category/view/id/xx'. *You will need to update the 'xx' with the ID of the destination category or the (category you want customers to be redirected to).
    • Redirect: By default this dropdown will be set to No, but to put the redirect into effect you will need to set it to either Temporary (302) or Permanent (301)
    • Description: Enter a descriptive description or reason for the redirect as required.

5. Once happy with your category redirect, click Save.

Note: If you are seeing a delay in your redirect working on the frontend (even after a CTRL +F5 for a full refresh) you may need to navigate to System > Index Management and refresh the Catalog URL Rewrite index.

 

How to set up a Custom Redirect

Custom redirects are typically used for CMS pages

Note: Before you begin setting up your redirect, it is easiest if you first make a note of the request and target URLS.

  1. In admin, navigate to Catalog > URL Rewrite Management, and click Add URL Rewrite.
  2. Ensure that the Create URL Rewrite dropdown is set to Custom.
  3. On the URL Rewrite Information tab, enter the following information (can follow example / formats of product or category redirects above if redirecting from/to a product or category).
    • Type: Custom
    • ID Path: Enter a unique identifier for this rewrite (used for admin purposes only)
    • Request Path: This should be the URL of the request CMS page / product or category.
    • Target Path: Enter a URL for the new destination / target CMS page / product or category.
    • Redirect: By default this dropdown will be set to No, but to put the redirect into effect you will need to set it to either Temporary (302) or Permanent (301)
    • Description: Enter a descriptive description or reason for the redirect as required.

5. Once happy with your category redirect, click Save.

Note: If you are seeing a delay in your redirect working on the frontend (even after a CTRL +F5 for a full refresh) you may need to navigate to System > Index Management and refresh the Catalog URL Rewrite index.

 

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.