Thanks a lot.<br><br>Max<br><br><div class="gmail_quote">On Mon, Mar 2, 2009 at 10:20 PM, Max <span dir="ltr"><<a href="mailto:maxbear@gmail.com">maxbear@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks a lot for the rewrite rule.<br><br>I posted the wrong rewrite rule:-( in my origial post. This is the one that I want to change:<br><br>RewriteEngine On<br>RewriteBase /<br>RewriteRule ^images/e/(.*)$ <a href="http://thumbs.ebaystatic.com/pict/$1" target="_blank">http://thumbs.ebaystatic.com/pict/$1</a> [R,L]<div class="Ih2E3d">
<br>
RewriteRule ^item-(.*)_(.*)_(.*)_(.*).html$ auction.php?title=$1&item=$2&country=$3&ccid=$4<br>RewriteRule ^item-(.*)_(.*)_(.*).html$ auction.php?title=$1&item=$2&country=$3<br>RewriteRule ^item-(.*)_(.*).html$ auction.php?title=$1&item=$2<br>
<br></div>Could someone help me to make it work? Thanks a lot :-).<br><font color="#888888"><br>Max</font><div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Sun, Mar 1, 2009 at 11:51 PM, Igor Sysoev <span dir="ltr"><<a href="mailto:is@rambler-co.ru" target="_blank">is@rambler-co.ru</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>On Sun, Mar 01, 2009 at 09:58:25PM +0800, Max wrote:<br>
<br>
> I tried to change the following apache rewrite to work under nginx. But it's<br>
> still not working.<br>
><br>
> RewriteEngine On<br>
> RewriteBase /<br>
> RewriteRule ^item-(.*)_(.*)_(.*)_(.*).html$<br>
> auction.php?title=$1&item=$2&country=$3&ccid=$4<br>
> RewriteRule ^item-(.*)_(.*)_(.*).html$<br>
> auction.php?title=$1&item=$2&country=$3<br>
> RewriteRule ^item-(.*)_(.*).html$ auction.php?title=$1&item=$2<br>
><br>
> Could anyone teach me how can I do it correctly? Thanks a lot.<br>
<br>
</div></div> location /item- {<br>
rewrite ^/item-(.*)_(.*)_(.*)_(.*).html$<br>
<div> /auction.php?title=$1&item=$2&country=$3&ccid=$4<br>
</div> last;<br>
<br>
rewrite ^/item-(.*)_(.*)_(.*).html$<br>
<div> /auction.php?title=$1&item=$2&country=$3<br>
</div> last;<br>
<br>
rewrite ^/item-(.*)_(.*).html$<br>
<div> /auction.php?title=$1&item=$2<br>
</div> last;<br>
}<br>
<font color="#888888"><br>
<br>
--<br>
Igor Sysoev<br>
<a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
<br>
</font></blockquote></div><br>
</div></div></blockquote></div><br>