<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16788" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I'm considering migrating an ecommerce site that we 
run, to nginx.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>The default rules that we have in Apache, look 
fairly complex and I'd like to seek some guidance to see if they can be migrated 
to Ngix 0.7.27 or somewhere close to that.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>1) RedirectMatch gone:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV># block all smarty templates (no reason to have these exposed) 
<BR>RedirectMatch gone ^/.*\.tpl$ <BR></DIV>
<DIV><FONT face=Arial size=2>2) Complex RewriteRules. These just work under 
Apache and while I've had sucess in several instances with nginx by replacing 
RewriteRule with rewrite and the [QSA,L] with last, I'd like to see if anyone 
spots anything obvious.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>RewriteRule 
^([^/]*/)?[^/]+-printable-(productcode|title|price|orderby)-up-c-([0-9]+)-p-([0-9]+)\.html$ 
$1home.php?printable=Y&amp;sort=$2&amp;sort_direction=0&amp;cat=$3&amp;page=$4 
[QSA,L]<BR>RewriteRule 
^([^/]*/)?[^/]+-printable-(productcode|title|price|orderby)-down-c-([0-9]+)-p-([0-9]+)\.html$ 
$1home.php?printable=Y&amp;sort=$2&amp;sort_direction=1&amp;cat=$3&amp;page=$4 
[QSA,L]<BR></DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Shri</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>