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

AMH 社区首页

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

[求助帖] nginx伪静态规则设置

suretall
铁牌会员
22.00 价值分

suretall 发表于 2016-02-22 16:45:42
windows下静态规则正常 ,httpd.ini文件内容如下,如何配置nginx伪静态规则呢?


# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP



RewriteRule /login(.*)$ /index.php/api/login/index/$1
RewriteRule /ping(.*)$ /index.php/api/ping/index/$1
RewriteRule /auth(.*)$ /index.php/api/auth/index/$1
RewriteRule /portal(.*)$ /index.php/api/user/index/$1
RewriteRule /weixin(.*)$ /index.php/api/login/weixin/$1
RewriteRule /dladmin(.*)$ /index.php/index/index/alog/$1
RewriteRule /ptadmin(.*)$ /index.php/wifiadmin/login/index/$1
RewriteRule /wxmm(.*)$ /index.php/index/wxmm/index/$1
RewriteRule /control(.*)$ /index.php/index/control/index/$1
RewriteRule /upgrade(.*)$ /index.php/index/upgrade/index/$1

下边是.htaccess的文件

# 将 RewriteEngine 模式打开
RewriteEngine On

RewriteBase /
# Rewrite 系统规则请勿修改
RewriteRule ^login(.*)$ index.php/api/login/index/(.*)$
RewriteRule ^ping(.*)$ index.php/api/ping/index/(.*)$
RewriteRule ^auth(.*)$ index.php/api/auth/index/(.*)$
RewriteRule ^portal(.*)$ index.php/api/user/index/(.*)$
RewriteRule ^library/test/success.html index.php/api/login/apple
RewriteRule ^weixin(.*)$ /index.php/api/login/weixin/(.*)$
RewriteRule ^dladmin(.*)$ /index.php/index/index/alog/(.*)$
RewriteRule ^ptadmin(.*)$ /index.php/wifiadmin/login/index/(.*)$
RewriteRule ^wxmm(.*)$ /index.php/index/wxmm/index/(.*)$





2016-02-22 16:45:42 1
 1  (总1页)
AMH社区列表
用户服务中心