Rewrite rules problems.
Jérémy Dierx
jeremy.dierx at pickabee.com
Wed Jun 6 12:10:10 MSD 2007
Thanks for your answer Roxis !
My rewrite rules work fine with this :-)
Long life to Nginx the best web server.
Jérémy.
Le mercredi 06 juin 2007 à 09:10 +0200, Roxis a écrit :
> On Wednesday 06 June 2007, Jérémy Dierx wrote:
> > rewrite ^/(.*)\.htm$ /gabarit.php?contenu=$1 last; # it works !
> > rewrite ^/galeries/$ /gabarit\.php?contenu=accueil-galerie? last; #
> > it doesn't work !
> > rewrite ^/galeries/([0-9]*)/([0-9]*)\.htm$ /gabarit
> > \.php?contenu=detail-galerie&categorie=$1&galerie=$2 last; # it doesn't
> > work !
>
> try this:
>
> rewrite ^/([a-z-]+)\.htm$ /gabarit.php?contenu=$1 last;
> rewrite ^/galeries/$ /gabarit.php?contenu=accueil-galerie last;
> rewrite
> ^/galeries/([0-9]+)/([0-9]+)\.htm$ /gabarit.php?contenu=detail-galerie&categorie=$1&galerie=$2
> last;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20070606/0c672215/attachment.html>
More information about the nginx
mailing list