Tuesday, 15 March 2011

url - Nginx rule correction -



url - Nginx rule correction -

i want know if wrong in rewrite rule :

rewrite ^/$lang/(.*)$ /$1?lang=$lang last;

actually i've urls :

http://example.com/page1.php?lang=en http://example.com/page2.php?lang=en

and want urls :

http://example.com/en/page1.php http://example.com/en/page2.php

url nginx rewriting

No comments:

Post a Comment