cancel
Showing results for 
Search instead for 
Did you mean: 

Custom URL rewrite

Custom URL rewrite

Hi

 

I have to do custom URL rewrite for product , category and CMS pages. I need to for each category , product and CMS pages

 

Such as below:

Product pages should be /p/
Category pages should be /c/
Static pages should be /s/

 

Product pages should be /p/producturl.html
Category pages should be /c/categoryurl.html
Static pages should be /s/pageurl.html

 

Your help is highly appreciated.

 

Thanks.

1 REPLY 1

Re: Custom URL rewrite

Hello @krishenuetb254 

 

Whenever we create any Category/product/CMS, a URL rewrite is created for same in :
Marketing > URL Rewrites

so you can create a script and change all the URL(s) with specific content you want to add in URL but this will limit to old categories, if you create new category/product/CMS then again you have to use that script.

Or if you don't want to use URL rewrite, you can try below way :

https://magento.stackexchange.com/questions/206855/magento-2-2-how-to-add-static-product-prefix-to-p...

 

Hope it helps !

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy