Search code examples
.htaccessmod-rewriteexpressionengine

Simple rewrite Rule


I'm trying to write this simple rewrite rule that is not working the way i'd like it to. I have this url: http://domain.com/fr/some_city/ that i'd like to rewrite to http://domain.com/fr/properties?city=1234

Here's my rewrite rule:

RewriteRule   ^some_city$   proprietes?city=1234  [NC,L]

In the result page, there's nothing in $_GET['city']


Solution

  • Finally fixed ! If it can help anyone else:

    As I was looking into PATH_INFO I noticed PHP was running as CGI, so added cgi.fix_pathinfo=0 to php.ini fixed it.