Product with category path

Redirect to: gear/bags/impulse-duffle.html

Redirect from: gear/bags/overnight-duffle.html

Product without category path

Redirect to: impulse-duffle.html

Redirect from: overnight-duffle.html

Step 2. Create the rewrite

IMPORTANT
In the process of redirection, all GET parameters specified in the URL are removed for security reasons.
  1. On the Admin sidebar, go to Marketing > SEO & Search > URL Rewrites.

  2. Before you proceed, do the following to verify that the request path is available.

    • In the search filter at the top of the Request Path column, enter the URL key of the page to be redirected and click Search.

    • If there are multiple redirect records for the page, find the one that matches the applicable store view and open it in edit mode.

    • In the upper-right corner, click Delete. When prompted, click OK to confirm.

  3. In the upper-right corner of the URL Rewrites page, click Add URL Rewrite.

  4. Set Create URL Rewrite to For product.

  5. In the grid, find the product that is the target (destination) of the redirect and click the row.

    URL rewrites - product

  6. Below the category tree, click Skip Category Selection.

    For this example, the redirect does not include a category.

    Product URL rewrite - skip category selection

    The Add URL Rewrite for a Product page displays a link to the target in the upper-left corner, and the Target Path field displays the system version of the path, which cannot be changed. Initially, the Redirect Path field also displays the target path.

    • If you have multiple store views, set Store to the view where the rewrite applies. Otherwise, a rewrite is created for each view.

    • For Request Path, replace the default by entering the URL key and suffix (if applicable) of the original product request. This is the redirect from product that you identified in the planning step.

      NOTE
      The request path must be unique for the specified store. If there is already a redirect that uses the same request path, you receive an error when you try to save the redirect. The previous redirect must be deleted before you can create one.
    • Set Redirect Type to one of the following:

      • Temporary (302)
      • Permanent (301)
    • For your own reference, enter a brief Description of the rewrite.

    Product URL rewrite - information

  7. Before saving the redirect, review the following:

    • The link in the upper-left corner displays the name of the target product.
    • The Request Path contains the path for the original redirect from product.
  8. When complete, click Save.

    The new product rewrite now appears at the top of the URL Rewrites grid.

Step 3. Test the result

  1. Go to the home page of your store.

  2. Do one of the following:

    • Navigate to the original redirect from product request page.
    • In the address bar of the browser, enter the path to the original redirect from product immediately after the store URL and press Enter.

    The new target product appears instead of the original product request.

Field descriptions

FieldDescription
Create URL RewriteIndicates the type of rewrite. The type cannot be changed after the rewrite is created. Options: Custom / For category / For product / For CMS page
Request PathThe product that is to be redirected. Depending on your configuration, the Request Path might include the .html or .htm suffix, and category. The Request Path must be unique, and cannot be in use by another redirect. If you receive an error that the Request Path exists, delete the existing redirect, and try again.
Target PathThe internal path that is used by the system to point to the destination of the redirect. The target path is grayed out and cannot be edited.
RedirectDetermines the type of redirect. Options:
No - No redirect is specified. Many operations create redirect requests of this type. For example, every time you add products to a category, a redirect of the No type is created each store view.
Temporary (302) - Indicates to search engines that the rewrite is for a limited time. Search engines generally do not retain page rank information for temporary rewrites.
Permanent (301) - Indicates to search engines that the rewrite is permanent. Search engines generally retain page rank information for permanent rewrites.
DescriptionDescribes the purpose of the rewrite for internal reference.

Multiple URL rewrites

You can quickly update URL rewrites for multiple or all products simultaneously using the following steps.

  1. On the Admin sidebar, go to Catalog > Products.

  2. Select all the products for which you want to update URL rewrites.

  3. Under Actions, choose Update attributes to update multiple or all rewrites.

  4. Under PRODUCTS INFORMATION, click the Websites tab.

  5. In the Add Product To Websites section, select all websites for which you want to restore URL rewrites.

  6. When ready to update, click Save.

NOTE
All selected products are readded to the selected websites and URL rewrites are regenerated.

Update Attributes - update multiple URL rewrites

Previous pageCategory rewrites
Next pageCMS page rewrites

Commerce