产品服务AMH 免费服务器主机面板SSL证书 免费SSL证书申请 担保单 免费安全、零费率交易平台编程助手免费智能写代码、翻译AMYSQL 免费MySQL管理工具

AMH 社区首页

 AMH社区 - 开放自由有价值的社区

[求助帖] 求帮忙给把htaccess 转下nginx的规则 感谢!!!

神奇影院
铁牌会员
144.00 价值分

神奇影院 发表于 2013-10-08 16:24:58
<IfModule mod_rewrite.c>

RewriteEngine on

ErrorDocument 403 /404.html

ErrorDocument 404 /404.html

RewriteRule ^app/list_(\d+)_(\d+)\.html$ index.php?tpl=list_app&cid=$1&p=$2

RewriteRule ^app/list_(\d+)\.html$ index.php?tpl=list_app&cid=$1&p=1

RewriteRule ^app/(\w+?)/(\d+)\.html$ index.php?tpl=list_app&cpy=$1&p=$2

RewriteRule ^app/(\w+?)/$ index.php?tpl=list_app&cpy=$1&p=1

RewriteRule ^sepcial/list_(\d+)\.html$ index.php?tpl=special_list&p=$1

RewriteRule ^sepcial/$ index.php?tpl=special_list&p=1

RewriteRule ^special/(\d+)\.html$ index.php?tpl=special_content&id=$1

RewriteRule ^info/list_(\d+)_(\d+)\.html$ index.php?tpl=list_info&cid=$1&p=$2

RewriteRule ^info/list_(\d+)\.html$ index.php?tpl=list_info&cid=$1&p=1

RewriteRule ^info/(\w+?)/(\d+)\.html$ index.php?tpl=list_info&cpy=$1&p=$2

RewriteRule ^info/(\w+?)/$ index.php?tpl=list_info&cpy=$1&p=1

RewriteRule ^info/(\d+)\.html$ index.php?tpl=content_info&id=$1

RewriteRule ^app/(\d+)\.html$ index.php?tpl=content_app&id=$1

RewriteRule ^app/(\d+)_(\d+)\.html$ index.php?tpl=content_app_history&id=$1&hid=$2

RewriteRule ^lastupdate/(\d+)\.html$ index.php?tpl=lastupdate&p=$1

RewriteRule ^lastupdate/$ index.php?tpl=lastupdate&p=1

RewriteRule ^image/(.*).(\w+)$ pic.php?url=$1&type=$2

</IfModule>
2013-10-08 16:24:58 1

tanyuxiang
金牌会员
5420.37 价值分

  支持 (0分)  反对 (0分)
回复  2013-10-09 12:03:19 2
 1  (总1页)
AMH社区列表
用户服务中心