Jump to content

Rewrite Rules add/change


Rissinko

Recommended Posts

Hi guys , Tried or know someone how to change rewrite rules in htacces for prestashop ? i need to create one rewrite rule but i am fighting with urls wich contain category/subcategory/ .... please look below

I have link like :

www.example.com/clothing?selected_filters=manufacturer-Nike
I create rewrite rule which is function and i can use link like this :

www.example.com/clothing/manufacturer-Nike
But now problem is when i want to use this rewrite with link which have subcategory

www.example.com/clothing/t-shirts
My rewrite rule doesn't work because when i use my created rule /manufacturer- in link it change link to this and doesn't work:

http://www.example.com/clothing?selected_filters=t-shirt%2Fmanufacturer-nike

Iam trying something like this :

     RewriteRule ^(.*)/$ ?selected_filters=manufacturer-$1
     RewriteRule ^(.*)/$ ?selected_filters=$1%2manufacturer-$2

and
     RewriteRule ^(.*)/$ ?selected_filters=$1&manufacturer-$2
I already have turned on Friendly url in prestashop so i trying use it with the rewritet urls. And another thing is when i use my rewrited link it still show in browser adress bar that mess version of link.

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