AMH 社区首页
AMH社区 - 开放自由有价值的社区
[求助帖] nginx伪静态规则设置 |
|
---|---|
suretall |
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/(.*)$
点赞,加油! (0分)
2016-02-22 16:45:42 1
|