simple rewrite but...

Drazen Milosevic dmilosevic at it.verat.net
Thu Jun 26 14:56:13 MSD 2008


i can't get it working.

this is the rule for Apache wich works
RewriteRule ^reservation.html$ /reservation.php

In nginx I tried like this 
rewrite ^.*$ /reservation.php$1 last;
and
rewrite ^reservation.html$ /reservation.php$1 last;
and 
rewrite ^/reservation.html$ http://www.domain.com/reservation.php$1 permanent;

with hundred variations but to no avail.

I just can't get it working under nginx. It was actually little embarassing 
sending this to mailing list but....





More information about the nginx mailing list