Deathstorm Posted March 12, 2018 Share Posted March 12, 2018 Dear developers, I've been trying to create a second option of url rewrites to a product. In the standard Prestashop installation at the SEO & URL's section i've got the following products url build-up: {category:/}{id}-{rewrite}-{ean13}.html This creates the following products url: https://www.example.com/{category-name}/{product-id}/{product-name}/{ean13}.html What i would like to add is an option for various reasons to acces a products page through the following url build up: ean/{ean13}.html The result url would be something like the following example: https://www.example.com/ean13/{ean13}.html Is there a module, addon, or piece of code out there that would be able to generate these kind of structures? I did find some "Remove ID's from pretty url's" modules but that doesn't give me the result i'm searching for. Only partially since it only removes the ID's. It wouldn't be a problem if it's a redirect to the standard url build up as mentioned in the first {code} segment. I know i could write rewrite rules in my .htacces file but to do this for every product would be a lot of work so i was wondering if there is a more easy way of achieving this. Kind regards and thanks in advance! Link to comment Share on other sites More sharing options...
Respocert Posted April 27, 2018 Share Posted April 27, 2018 did you try this one, https://addons.prestashop.com/en/url-redirects/31273-seo-friendly-urls.html Link to comment Share on other sites More sharing options...
Deathstorm Posted April 29, 2018 Author Share Posted April 29, 2018 On 27-4-2018 at 9:07 PM, Respocert said: did you try this one, https://addons.prestashop.com/en/url-redirects/31273-seo-friendly-urls.html I did, but eventually i build my own custom module for this setting, thank you anyways. 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