<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.12.1">
</HEAD>
<BODY>
Thanks for your answer Roxis !<BR>
<BR>
My rewrite rules work fine with this :-)<BR>
<BR>
<BR>
Long life to Nginx the best web server.<BR>
<BR>
J&#233;r&#233;my.<BR>
<BR>
<FONT COLOR="#808080">Le mercredi 06 juin 2007 &#224; 09:10 +0200, Roxis a &#233;crit :</FONT>
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#808080">On Wednesday 06 June 2007, J&#233;r&#233;my Dierx wrote:</FONT>
<FONT COLOR="#808080">&gt;     rewrite ^/(.*)\.htm$  /gabarit.php?contenu=$1 last; # it works !</FONT>
<FONT COLOR="#808080">&gt;     rewrite ^/galeries/$ /gabarit\.php?contenu=accueil-galerie? last; #</FONT>
<FONT COLOR="#808080">&gt; it doesn't work !</FONT>
<FONT COLOR="#808080">&gt;     rewrite ^/galeries/([0-9]*)/([0-9]*)\.htm$ /gabarit</FONT>
<FONT COLOR="#808080">&gt; \.php?contenu=detail-galerie&amp;categorie=$1&amp;galerie=$2 last; # it doesn't</FONT>
<FONT COLOR="#808080">&gt; work !</FONT>

<FONT COLOR="#808080">try this:</FONT>

<FONT COLOR="#808080">rewrite ^/([a-z-]+)\.htm$  /gabarit.php?contenu=$1 last;</FONT>
<FONT COLOR="#808080">rewrite ^/galeries/$ /gabarit.php?contenu=accueil-galerie last;</FONT>
<FONT COLOR="#808080">rewrite </FONT>
<FONT COLOR="#808080">^/galeries/([0-9]+)/([0-9]+)\.htm$ /gabarit.php?contenu=detail-galerie&amp;categorie=$1&amp;galerie=$2 </FONT>
<FONT COLOR="#808080">last;</FONT>
</PRE>
</BLOCKQUOTE>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<BR>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>