Magento for B2B Commerce, 2.2.x

Magento 2.2.x Notice: As outlined by the Magento Software Lifecycle Policy, Magento 2.2.x has reached the End-of-Support and will no longer receive quality fixes or documentation updates. To maintain your site's performance, security, and PCIPayment Card Industry: Refers to debit and credit cards and their associated businesses. compliance, upgrade to the latest version of Magento.

The online Magento 2.2.x User Guide is scheduled for removal, but will remain available in PDF for Open Source, Commerce, and Commerce for B2B.

Category Rewrites

If a categoryA set of products that share particular characteristics or attributes. is removed from your catalog, you can use a category rewrite to redirectA method used to alert browsers and search engines that a page has been moved. 301 Redirect: Permanent change 302 Redirect: Temporary change links to the URLUniform Resource Locator: The unique address of a page on the internet. of another category in your store. Think in terms of "target" and "original request," or "redirect to" and "redirect from." Although people might still navigate to the former page from search engines or outdated links, the redirect causes your store to switch to the new target.

If automatic redirects are enabled for your store, there is no need to create a rewrite when a category URL Key is changed.

URL Rewrite for Category
  • Field Descriptions



    Create URL Rewrite

    Indicates the type of rewrite. The type cannot be changed after the rewrite is created. Options:


    For category

    For product

    For CMS page

    Request Path

    The category that is to be redirected. Depending on your configuration, the Request Path might include the .html or .htm suffix, and parent category.

    The Request Path must be unique, and cannot be in use by another redirect. If you receive an error that the Request Path already exists, delete the existing redirect, and try again.

    Target Path

    The 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.


    Determines the type of redirect. Options :


    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.


    Describes the purpose of the rewrite for internal reference.