Welcome! Log In Create A New Profile

Advanced

how to fix the rewrite rule?

July 19, 2012 04:32AM
this works fine
rewrite "^/([a-f0-9]{2})([a-f0-9]{18})\.(jpg|png|gif)$" /test.php?a=$1&b=$2&c=$3 last;

open /a669164f02f6fdc18f.jpg

test.php would output
Array ( [a] => ad [b] => a669164f02f6fdc18f [c] => jpg )

but this DO NOT WORK
rewrite "^/([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{14})\.(jpg|png|gif)$" /test.php?a=$1&b=$2&c=$3 last;
it return 404 error

how can i fix this?
Subject Author Posted

how to fix the rewrite rule?

21andy July 19, 2012 04:32AM

Re: how to fix the rewrite rule?

Francis Daly July 19, 2012 04:50AM

Re: how to fix the rewrite rule?

Elena Zwetkow July 19, 2012 05:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 69
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