Hi,
I just moved from Apache to Nginx.
All .htaccess rewrite rules changed success.
Cool!
But one thing not moved.
It's option from Apache: AllowEncodedSlashes
As e.g.:
A lot of links:
http://site.com/page.php/getparam1/getvalue1/getparam2/getvalue2
http://site.com/nextpage.php/getparam1/getvalue1/getparam2/getvalue2/getparam3/getvalue3
The Nginx must convert it as:
http://site.com/page.php?getparam1=getvalue1&getparam2=getvalue2
http://site.com/nextpage.php?getparam1=getvalue1&getparam2=getvalue2&getparam3=getvalue3
A lot of pages. A lot of $_GET values different count.
It's impossible add rules for it.
Because it's $_GET values and it can be changed any time.
I need some this:
rewrite ^/(.*\.php)/(.*)/(.*)$ /$1?$2=$3
But it's static and not good decision.
Thank you.
Edited 3 time(s). Last edit at 01/04/2014 07:34AM by sb9.