Jump to content

[Solved] Friendly images urls.


o-s-i

Recommended Posts

Hello!

I'm not sure whether this is the right forum to ask for this or not.
I'm preparing my shop with Prestashop and I'm working on the rewritten urls. And I have a problem with the images urls.

- When I let the real url, the product image are displayed fine

- When I enable the friendly urls, all i get is the 404.gif



Here are the parameters I'm using :
- real product url : /product.php?id_product=1

- rewritten product url : /cd-metal/1-iron-maiden-brave-new-world.htm

- real image url : /img/p/1-2-home.jpg <- WORKING

- rewritten image url : /1-2-home/iron-maiden-brave-new-world.jpg <- NOT WORKING

- .htaccess : RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [L,E]

Any ideas welcome :)
Thanks!

Link to comment
Share on other sites

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