I'm facing an error that is driving me crazy.
I have this directive in my .htaccess:
RewriteRule ^([a-zA-Z0-9_+.\-]*)-barato$ buscar?controller=search&s=$1 [L,QSA,NC]
This directive is for the prestashop search engine. It is not keeping the nice url and is making a 301 redirect to the ugly url instead...
I have tried and searched all. I hope you know how to give me indications of where the fault may be.
UPDATE
Sorry for taking a long time to answer, I've had a brutal work season. I have tried what wp78de said (again, because I think I already tried this too) and it still does not work... This htaccess has been working correctly in prestashop 1.6 for several years. However in none of the versions of prestashop 1.7 (1.7.2, 1.7.3, 1.7.4.1/2/3) in which I have tried it works.
It is a huge headache and surely it is silly, but I do not give with it...