DevelopingEight Posted July 24, 2020 Share Posted July 24, 2020 Hi! I wanna remove category name and id from product url. The product page does not work when I delete the category name. Anyone can help me? thanks Link to comment Share on other sites More sharing options...
HeineFR Posted July 25, 2020 Share Posted July 25, 2020 Hello, Please give more info like Prestashop Version and product link route in your configuration. Link to comment Share on other sites More sharing options...
DevelopingEight Posted July 25, 2020 Author Share Posted July 25, 2020 (edited) i use 1.7.6.7 version. and it's my product url " {category:/}{id}{-:id_product_attribute}-{rewrite}{-:ean13} " i changed like this " {id}{-:id_product_attribute}-{rewrite} ". after that my product page didn't work. Edited July 25, 2020 by DevelopingEight add things (see edit history) Link to comment Share on other sites More sharing options...
HeineFR Posted July 25, 2020 Share Posted July 25, 2020 Try symply "{id}-{rewrite}.html" to test of it works Link to comment Share on other sites More sharing options...
giasemis Posted May 27, 2022 Share Posted May 27, 2022 I do that and it worked basically I change product urls from {category:/}{id}{rewrite} to {rewrite}-{id} but now I know now how I can redirect old urls to new ones... any idea? Link to comment Share on other sites More sharing options...
Prestachamps Posted May 27, 2022 Share Posted May 27, 2022 Hi, for the old URL you will need to create .htaccess rewrite rule to have them redirected to the new URL. Have a nice day, Leo. Link to comment Share on other sites More sharing options...
giasemis Posted May 27, 2022 Share Posted May 27, 2022 yes, my problem is with the implementation of the redirection rule in .htaccess I try several think but it didn;t work. I also try this rule I found in previous post but it didn't work RedirectMatch permanent /[^/]+/([0-9]+)-(.*)-([0-9]+)\.html$ /$2-$1-$3 Link to comment Share on other sites More sharing options...
giasemis Posted May 27, 2022 Share Posted May 27, 2022 It solved. The rule in .htaccess is this : RedirectMatch permanent /[^/]+/([0-9]+)-(.*)-(.*)\.html$ /el/$2-$3-$1.html Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now