Hi nginx-Fans,
I have a little problem with my rewrite-lines with nginx.
I tried about 1 hour to fix it, but it still won't work.
I currently have this lines:
[quote]
rewrite ^/encode?(.*)(&[1-9]+)$ /encode.php?q=$1&s=$2 last;
rewrite ^/decode?(.*)$ /decode.php?q=$1 last;
[/quote]
Encode example:
[quote]http://LINK/encode?HERE_GOES_THE_DATA_MAYBE_A_LINK&5[/quote]
Decode example:
[quote]http://LINK/decode?LINK[/quote]
I think nginx won't accept the questionmark in the rewrite rule.
When I open the Link it says "404 Not found". If I try
[quote]http://LINK/encodeDATA[/quote]
it works...
Somebody has a solution?
Thank you!
Greets,
Patschi