55SHO 发表于 2016-3-1 20:51:05

求解 .htaccess伪静态转nginx

[*]RewriteCond %{ENV:REDIRECT_STATUS} ^$
[*]RewriteCond %{REQUEST_URI} !-d
[*]RewriteRule ^down/(.*)/(.*)$ index.php?id=$1
[*]
[*]RewriteCond %{ENV:REDIRECT_STATUS} ^$
[*]RewriteCond %{REQUEST_URI} !-d
[*]RewriteRule ^move/(.*)/(.*)/(.*)$ index.php?id=$2&move=$1
[*]复制代码


非常感谢。。

月痕 发表于 2016-3-1 20:54:27

[*]#ignored: condition 0
[*]if (!-d $uri){
[*]      set $rule_0 2$rule_0;
[*]}
[*]if ($rule_0 = "21"){
[*]      rewrite ^/down/(.*)/(.*)$ /index.php?id=$1 last;
[*]}
[*]#ignored: condition 0
[*]if (!-d $uri){
[*]      set $rule_1 2$rule_1;
[*]}
[*]if ($rule_1 = "21"){
[*]      rewrite ^/move/(.*)/(.*)/(.*)$ /index.php?id=$2&move=$1 last;
[*]}
[*]复制代码

最帅的人 发表于 2016-3-1 21:30:00

http://winginx.com/en/htaccess

试试这个

Yvette 发表于 2016-3-1 23:02:47

不知道

最帅的人 发表于 2016-3-2 09:39:03


Yvette 发表于 2016-3-2 09:39

http://winginx.com/en/htaccess

试试这个
为愿意教别人方法的+10086
可惜,。。。。c叼这货关了评分。

loveni 发表于 2016-3-2 17:20:24


Yvette 发表于 2016-3-2 09:39

http://winginx.com/en/htaccess

试试这个
3q已经收藏
页: [1]
查看完整版本: 求解 .htaccess伪静态转nginx