<!DOCtype html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>在线商城后台管理</title>
<link rel="stylesheet" type="text/css" href="view/admin/style/basic.css" />
<link rel="stylesheet" type="text/css" href="view/admin/style/setting.css" />
<link rel="stylesheet" type="text/css" href="view/admin/js/css/jquery-ui.css" />
<script type="text/javascript" src="view/admin/js/basic.js"></script>
{literal}
<style type="text/css">
h1{
	font-size:13px;
	color:#666;
}
.colorbox {
    background: none repeat scroll 0 0 #F2F9FD;
    border-bottom: 4px solid #DEEFFA;
    border-top: 4px solid #DEEFFA;
    clear: both;
    padding: 10px;
}
</style>
{/literal}
</head>
<body>
<div style="padding:10px; overflow:hidden;">
<h1>Apache 伪静态规则</h1>
<pre class="colorbox">
&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteRule ^{$b2c_category}-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+){$suffix} index.php?a=category&cid=$1&sid=$2&sort=$3&star=$4&end=$5&page=$6
RewriteRule ^{$b2c_category}-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+){$suffix} index.php?a=category&cid=$1&sid=$2&sort=$3&star=$4&end=$5
RewriteRule ^{$tao_category}-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+){$suffix} index.php?a=category&cid=$1&tab=tao&sort=$2&star=$3&end=$4&page=$5
RewriteRule ^{$tao_category}-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+){$suffix} index.php?a=category&cid=$1&tab=tao&sort=$2&star=$3&end=$4		
RewriteRule ^{$b2c_category}-([0-9]+)-(.*)-(.*)-([0-9]+){$suffix} index.php?a=category&cid=$1&tab=$2&notab=$3&page=$4
RewriteRule ^{$b2c_category}-([0-9]+)-([0-9]+)-([0-9]+){$suffix} index.php?a=category&cid=$1&sid=$2&page=$3
RewriteRule ^{$tao_category}-([0-9]+)-tao-([0-9]+){$suffix} index.php?a=category&cid=$1&tab=tao&page=$2
RewriteRule ^{$b2c_category}-([0-9]+)-b2c-([0-9]+){$suffix} index.php?a=category&cid=$1&tab=b2c&page=$2
RewriteRule ^{$b2c_category}-([0-9]+)-(.*)-(.*){$suffix} index.php?a=category&cid=$1&tab=$2&notab=$3
RewriteRule ^{$tao_category}-([0-9]+)-tao{$suffix} index.php?a=category&cid=$1&tab=tao
RewriteRule ^{$b2c_category}-([0-9]+)-b2c{$suffix} index.php?a=category&cid=$1&tab=b2c
RewriteRule ^{$tao_category}-([0-9]+){$suffix} index.php?a=category&cid=$1&tab=tao
RewriteRule ^{$b2c_category}-([0-9]+)-([0-9]+)-([0-9]+){$suffix} index.php?a=category&cid=$1&sid=$2&page=$3
RewriteRule ^{$b2c_category}-([0-9]+)-([0-9]+){$suffix} index.php?a=category&cid=$1&page=$2
RewriteRule ^{$b2c_category}-([0-9]+){$suffix} index.php?a=category&cid=$1
RewriteRule ^{$artile_list}-([0-9]+)-([0-9]+){$suffix} index.php?a=artilelist&m=artilelist&pid=$1&page=$2
RewriteRule ^{$artile_list}-([0-9]+){$suffix} index.php?a=artilelist&m=artilelist&pid=$1
RewriteRule ^{$artile_content}-([0-9]+){$suffix} index.php?a=artilelist&m=artile_content&id=$1
RewriteRule ^{$artile}{$suffix} index.php?a=artilelist
RewriteRule ^{$promo}-([0-9]+)-([0-9]+){$suffix} index.php?a=promo&cid=$1&page=$2
RewriteRule ^{$promo}-([0-9]+){$suffix} index.php?a=promo&cid=$1
RewriteRule ^{$promo}{$suffix} index.php?a=promo
RewriteRule ^{$sellerinfo}-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+){$suffix} index.php?a=sellerinfo&id=$1&cid=$2&sid=$3&page=$4
RewriteRule ^{$sellerinfo}-([0-9]+){$suffix} index.php?a=sellerinfo&id=$1
RewriteRule ^{$search}-(.*)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+){$suffix} index.php?a=search&q=$1&cid=$2&sid=$3&sort=$4&star=$5&end=$6&page=$7
RewriteRule ^{$search}-(.*)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+){$suffix} index.php?a=search&q=$1&cid=$2&sid=$3&sort=$4&star=$5&end=$6
RewriteRule ^{$search}-(.*)-([0-9]+)-([0-9]+)-([0-9]+){$suffix} index.php?a=search&q=$1&cid=$2&sid=$3&page=$4
RewriteRule ^{$search}-(.*)-([0-9]+){$suffix} index.php?a=search&q=$1&page=$2
RewriteRule ^{$search}-(.*){$suffix} index.php?a=search&q=$1
RewriteRule ^{$bitem}-(.*){$suffix} index.php?a=bitem&iid=$1
RewriteRule ^{$item}-(.*){$suffix} index.php?a=item&iid=$1
RewriteRule ^{$index}{$suffix} index.php
RewriteRule ^{$mall}{$suffix} index.php?a=mall
RewriteRule ^{$all}{$suffix} index.php?a=all
RewriteRule ^{$shop}{$suffix} index.php?a=shop
ErrorDocument 404 /error.html
&lt;/IfModule&gt;
</pre>
</br>
<h1>IIS 伪静态规则</h1>
<pre class="colorbox">
[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32
RewriteEngine On	
RewriteRule ^/{$b2c_category}-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\{$suffix} /index\.php\?a=category&cid=$1&sid=$2&sort=$3&star=$4&end=$5&page=$6
RewriteRule ^/{$b2c_category}-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\{$suffix} /index\.php\?a=category&cid=$1&sid=$2&sort=$3&star=$4&end=$5
RewriteRule ^/{$tao_category}-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\{$suffix} /index\.php\?a=category&cid=$1&tab=tao&sort=$2&star=$3&end=$4&page=$5
RewriteRule ^/{$tao_category}-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\{$suffix} /index\.php\?a=category&cid=$1&tab=tao&sort=$2&star=$3&end=$4	
RewriteRule ^/{$b2c_category}-([0-9]+)-(.*)-(.*)-([0-9]+)\{$suffix} /index\.php\?a=category&cid=$1&tab=$2&notab=$3&page=$4
RewriteRule ^/{$b2c_category}-([0-9]+)-([0-9]+)-([0-9]+)\{$suffix} /index\.php\?a=category&cid=$1&sid=$2&page=$3
RewriteRule ^/{$tao_category}-([0-9]+)-tao-([0-9]+)\{$suffix} /index\.php\?a=category&cid=$1&tab=tao&page=$2
RewriteRule ^/{$b2c_category}-([0-9]+)-b2c-([0-9]+)\{$suffix} /index\.php\?a=category&cid=$1&tab=b2c&page=$2
RewriteRule ^/{$b2c_category}-([0-9]+)-(.*)-(.*)\{$suffix} /index\.php\?a=category&cid=$1&tab=$2&notab=$3
RewriteRule ^/{$tao_category}-([0-9]+)-tao\{$suffix} /index\.php\?a=category&cid=$1&tab=tao
RewriteRule ^/{$b2c_category}-([0-9]+)-b2c\{$suffix} /index\.php\?a=category&cid=$1&tab=b2c
RewriteRule ^/{$tao_category}-([0-9]+)\{$suffix} /index.php\?a=category&cid=$1&tab=tao
RewriteRule ^/{$b2c_category}-([0-9]+)-([0-9]+)-([0-9]+)\{$suffix} index\.php\?a=category&cid=$1&sid=$2&page=$3
RewriteRule ^/{$b2c_category}-([0-9]+)-([0-9]+)\{$suffix} index\.php\?a=category&cid=$1&page=$2
RewriteRule ^/{$b2c_category}-([0-9]+)\{$suffix} /index\.php\?a=category&cid=$1
RewriteRule ^/{$artile_list}-([0-9]+)-([0-9]+)\{$suffix} index\.php\?a=artilelist&m=artilelist&pid=$1&page=$2
RewriteRule ^/{$artile_list}-([0-9]+)\{$suffix} /index\.php\?a=artilelist&m=artilelist&pid=$1
RewriteRule ^/{$artile_content}-([0-9]+)\{$suffix} /index\.php\?a=artilelist&m=artile_content&id=$1
RewriteRule ^/{$artile}\{$suffix} /index.php\?a=artilelist
RewriteRule ^/{$promo}-([0-9]+)-([0-9]+)\{$suffix} /index\.php\?a=promo&cid=$1&page=$2
RewriteRule ^/{$promo}-([0-9]+)\{$suffix} /index\.php\?a=promo&cid=$1
RewriteRule ^/{$promo}\{$suffix} /index\.php?a=promo
RewriteRule ^/{$sellerinfo}-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\{$suffix} /index\.php\?a=sellerinfo&id=$1&cid=$2&sid=$3&page=$4
RewriteRule ^/{$sellerinfo}-([0-9]+)\{$suffix} /index\.php\?a=sellerinfo&id=$1
RewriteRule ^/{$search}-(.*)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\{$suffix} /index\.php\?a=search&q=$1&cid=$2&sid=$3&sort=$4&star=$5&end=$6&page=$7
RewriteRule ^/{$search}-(.*)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\{$suffix} /index\.php\?a=search&q=$1&cid=$2&sid=$3&sort=$4&star=$5&end=$6
RewriteRule ^/{$search}-(.*)-([0-9]+)-([0-9]+)-([0-9]+)\{$suffix} /index\.php\?a=search&q=$1&cid=$2&sid=$3&page=$4
RewriteRule ^/{$search}-(.*)-([0-9]+)\{$suffix} /index\.php\?a=search&q=$1&page=$2
RewriteRule ^/{$search}-(.*)\{$suffix} /index\.php\?a=search&q=$1
RewriteRule ^/{$bitem}-(.*)\{$suffix} /index\.php\?a=bitem&iid=$1
RewriteRule ^/{$item}-(.*)\{$suffix} /index\.php\?a=item&iid=$1
RewriteRule ^/{$index}\{$suffix} /index\.php
RewriteRule ^/{$mall}\{$suffix} /index\.php\?a=mall
RewriteRule ^/{$all}\{$suffix} /index\.php\?a=all
RewriteRule ^/{$shop}\{$suffix} /index\.php\?a=shop
ErrorDocument 404 /error.html
</pre>	
</div>

</body>
</html>