When you are on a product page, the URL of every product always looks clean. The name in the URL makes it very SEO friendly.
In this recipe, we will explore the possibilities of URL rewrites in Magento.
In the backend, navigate to Products | Inventory | Catalog and look for a simple product with visibility Catalog, Search. This recipe is based on the Endeavor Daytrip Backpack product from the sample data.
In the following steps, we will see the procedure for changing a URL of a product detail page.
Find the appropriate product in the frontend. You can find by navigating to Gear | Bags. If you open the product detail page, you will see the URL
/endeavor-daytrip-backpack.html
.In the backend, change the URL key attribute to
buy-now-endeavor-daytrip-backpack
.Reload the product in the frontend. The URL will change to the one we have just entered in the backend.