1

I have this url which is working: http://www.example.com/linea?linea=7

It gives me all the products of the category "linea" filtered by the custom parameter "linea", in this case the value is equal to 7

I want to make it more readable so I put this rewrite in the .htaccess file but it's not working:

RewriteRule ^bimbo(/.*)?$ index.php/linea?linea=7 [L,QSA]

It should be called when I type in the url: http://www.example.com/bimbo

Anybody knows why?


No idea why, but it works fine if rewrites are on proxy [P]

6
  • I'm voting to close this question as off-topic because it is not related to Magento platform. You should ask this question at serverfault.com. There, you'll have better chances of finding the solution.
    – Prateek
    Commented Nov 25, 2015 at 16:53
  • I think it is related because this rewrite is working on a plain system while with Magento it is not
    – Michele
    Commented Nov 25, 2015 at 16:54
  • I take my vote back then. You should add this detail to the question, otherwise someone else will do the same.
    – Prateek
    Commented Nov 25, 2015 at 16:59
  • why do you add index.php/ in your target url?
    – Stefan
    Commented Nov 26, 2015 at 2:50
  • I tried without index.php as well but still not working
    – Michele
    Commented Nov 26, 2015 at 8:09

1 Answer 1

1

Does this work?

RewriteCond %{QUERY_STRING} (^|&)linea=7($|&)
RewriteRule ^linea$ /bimbo? [L,R=301]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.