Jump to content
thirty bees forum
  • 0

SEO Friendly URL issue - TB1.4


Question

Posted

I am having difficulty with configuring a specific SEO URLS rewrite in my beta store and would like some feedback - maybe I'm asking too much from the system.

Desired URL: domain.com/p/88-21/product-name.html

I want to keep the product id in the url string as I have found this element to be critical in certain situations. The "p" tells me it is a product, I'm using "c" for categories. Maybe I don't need the product attribute, but I don't want to move forward under that assumption if I can figure out how to include it in the final output.

SEO-URL Rewrite:

p/{id}{-:id_product_attribute}/{rewrite}.html

I keep getting a 404 error with the above configuration.

p/{id}/{rewrite}.html

However, if I leave out the product attribute option {-:id_product_attribute} - this SEO friendly URL rewrite scheme works fine. I've also tried adjusting the attribute to {id_product_attribute:/} and its reverse with no success.

  • Like 1

3 answers to this question

Recommended Posts

  • 0
Posted

Thanks Rampage, I spent hours trying to figure out what the heck I was doing wrong. Turns out I got the keyword from the manual of an OLDER version of Prestashop. This is a very good point to remember though!

I must have been daydreaming about going to Mars or something...

Thanks again for taking the time to answer this silly question.

  • 0
Posted

The 404 usually happens because the router can't handle the optional hyphen if the attribute is missing. Try p/{id}-{id_product_attribute}/{rewrite}.html but only for items that actually have variants.

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...