0

This question already has an answer here:

Version : Magento 1.18

Our actual URLs for the same product :

store.com/product-name-1.html

store.com/cat1/cat2/product-name-1.html

How we can redirect the first URL to the second URL

store.com/product-name-1.html == Redirect to ==> store.com/cat1/cat2/product-name-1.html

marked as duplicate by Raphael at Digital Pianism, Keyul Shah, Rakesh Jesadiya, Siarhey Uchukhlebau, Khoa TruongDinh Dec 7 '16 at 16:03

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

From Vinoth's answer on Include categories in product URL

  • From the Admin menu, select System > Configuration.

  • In the Configuration panel on the left, select Catalog. Click to expand the Search Engine Optimizations section. Then, do the following:

    • To remove the suffix from product URLs, clear the default “.html” setting from the Product URL Suffix field.

    • To remove the suffix from category URLs, clear the default “.html” setting from the Category URL Suffix field.

    Note: For an existing catalog, you will need to refresh the Search Indexing (Catalog > Search Indexing) and browser cache (F5).

    • To omit the category path from product URLs, set Use Categories Path for Product URLs to “No.”
  • When complete, click the Save Config button.

Not the answer you're looking for? Browse other questions tagged or ask your own question.