Jump to content

Create multiple SEO friendly URL's for products


Deathstorm

Recommended Posts

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

  • 1 month later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...