Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

Rewrite rules from Apache again (1 reply)

$
0
0
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 ;

while

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?

AdvThanksAnce,

Luciano.
--
/"\ /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@sublink.sublink.ORG
/ \ AND POSTINGS / WWW: http://www.lesassaie.IT/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Viewing all articles
Browse latest Browse all 7229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>