Magento Commerce, 2.2.x
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

    Field

    Description

    Create URL Rewrite

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

    Custom

    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.

    Redirect

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

    Description

    Describes the purpose of the rewrite for internal reference.