Nginx rewrite. Analogue option for Apache: AllowEncodedSlashes
January 04, 2014 07:32AM

I just moved from Apache to Nginx.
All .htaccess rewrite rules changed success.
But one thing not moved.
It's option from Apache: AllowEncodedSlashes
As e.g.:
A lot of links:

The Nginx must convert it as:

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.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 74
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready