Skip to content

URL Rewrites ​

A URL rewrite sends visitors from one address on your storefront to another. Use it when a product, category or CMS page moves, so old links and bookmarks keep working and search engines find the new address.

Rewrites Bagisto adds for you ​

When you change the URL key of a product, category or CMS page, Bagisto adds a Permanent (301) rewrite from the old URL key to the new one, for the language you edited. It appears in the list, and you can edit or delete it like any other rewrite.

  • Only the most recent old address keeps redirecting. Each change removes the rewrites that pointed at the previous URL key.
  • For a CMS page, check the rewrite that's added. Open it and make sure its Target Path starts with page/.

Create a URL rewrite ​

  1. Go to Marketing >> Search & SEO >> URL Rewrites.

  2. Click Create URL Rewrite.

  3. In For, choose Product, Category or CMS Page.

  4. Enter the Request Path, the old address without your store's domain, for example blue-zipper-hoodie.

  5. Enter the Target Path, where visitors should go, for example coastal-breeze-mens-blue-zipper-hoodie-s.

  6. Choose the Redirect Type. It starts on Temporary (302).

  7. Choose the Locale, the storefront language the rewrite applies to.

    The Create URL Rewrite dialog sending blue-zipper-hoodie to a product's URL key with a permanent redirect
  8. Click Save URL Rewrite.

Choose the redirect type ​

Redirect TypeUse it when
Permanent (301)The old address is gone for good. Search engines move the old page's ranking to the new address.
Temporary (302)The change is short-term, such as a seasonal page that will come back. Search engines keep the old address.

How rewrites are matched ​

  • The Request Path matches the whole address after your store's domain, without the leading /.
  • For a CMS page, choose CMS Page in For and enter the part after page/ in Request Path, for example shipping-info for /page/shipping-info.
  • The Target Path is a path on your store or a full web address. To send visitors to a CMS page, include page/, for example page/shipping-policy.

Manage URL rewrites ​

The URL Rewrites list shows each rewrite's ID, For, Request Path, Target Path, Redirect Type and Locale, with icons to edit and delete it. Select several rewrites to delete them together.

The URL Rewrites list with a rewrite and its request path, target path and redirect type

Released under the MIT License.