Rewrite rules from Apache again

Luciano Mannucci luciano at
Tue Jun 10 16:00:13 UTC 2014

I'm still trying to move everything from apache to nginx.
I've successfully translated some rules from the .htaccess:

RewriteRule ^(.*)_k(.*)\.htm$ pagina.php?k=$2

works pretty weff if turned into:

rewrite ^/(.*)_k(.*).htm$ /pagina.php?k=$2 ;


RewriteRule ^privacy.php$ pagina.php?k=privacy

does not work if translated as:

rewrite ^/privacy.php$ /pagina.php?k=privacy ;

the request is passed unchanged and I get a 404 error for the
/privacy.php page does'nt exist.

What did I miss?


 /"\                         /Via A. Salaino, 7 - 20144 Milano (Italy)
 \ /  ASCII RIBBON CAMPAIGN / PHONE : +39 2 485781 FAX: +39 2 48578250
  X   AGAINST HTML MAIL    /  E-MAIL: posthamster at sublink.sublink.ORG
 / \  AND POSTINGS        /   WWW: http://www.lesassaie.IT/

More information about the nginx mailing list