url-rewrite

Creating URL Rewrites

The URL Rewrite tool can be used to create product and category rewrites, and custom rewrites
for any page in your store. When the rewrite goes into effect, any existing links that point to the
previous URL are seamlessly redirected to the new address. The following instructions show
how to use the URL Rewrite tool to create three different kinds of rewrites:

  • Product Rewrite
  • Category Rewrite
  • Custom Rewrite

All rewrites reference a “Target Path” and “Request Path,” as shown in the following examples.
The “Request Path” is the old URL, and the “Target Path” is where you want the URL to go
from now on.

Example: Permanent 301

Target Path: category-1.html
Request Path: catalog/category/id/6
Redirect Type: Permanent 301

Example: Temporary 302

Target Path: catalog/category/id/6
Request Path: product.html
http://magentocommerce.com
Redirect Type: Temporary 302
You can use rewrites to create additional URLs for items, as a temporary seasonal change, or as
a permanent change. Rewrites can be created for any valid path, including CMS content pages.
Internally, the system references products and category by ID. No matter how often the URL
changes, the ID remains the same. Here are some ways you can use URL rewrites:
Original URL
http://www.example.com/peripherals/ergonomic-keyboard.html
Additional Product URL
http://www.example.com/best-keyboard.html
Additional Category URL
http://www.example.com/all-on-sale.html
http://www.example.com/save-now/spring-sale

Leave a Comment

Your email address will not be published. Required fields are marked *