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]

  • 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 Nov 25 '15 at 16:53
  • I think it is related because this rewrite is working on a plain system while with Magento it is not – Michele Nov 25 '15 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 Nov 25 '15 at 16:59
  • why do you add index.php/ in your target url? – Stefan Nov 26 '15 at 2:50
  • I tried without index.php as well but still not working – Michele Nov 26 '15 at 8:09
1

Does this work?

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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