全球主机交流论坛

标题: 求解 .htaccess伪静态转nginx [打印本页]

作者: 55SHO    时间: 2016-3-1 20:51
标题: 求解 .htaccess伪静态转nginx
  1. RewriteCond %{ENV:REDIRECT_STATUS} ^$
  2. RewriteCond %{REQUEST_URI} !-d
  3. RewriteRule ^down/(.*)/(.*)$ index.php?id=$1 [QSA,L]

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



非常感谢。。
作者: 月痕    时间: 2016-3-1 20:54
  1. #ignored: condition 0
  2. if (!-d $uri){
  3.         set $rule_0 2$rule_0;
  4. }
  5. if ($rule_0 = "21"){
  6.         rewrite ^/down/(.*)/(.*)$ /index.php?id=$1 last;
  7. }
  8. #ignored: condition 0
  9. if (!-d $uri){
  10.         set $rule_1 2$rule_1;
  11. }
  12. if ($rule_1 = "21"){
  13.         rewrite ^/move/(.*)/(.*)/(.*)$ /index.php?id=$2&move=$1 last;
  14. }
复制代码

作者: 最帅的人    时间: 2016-3-1 23:02
提示: 作者被禁止或删除 内容自动屏蔽
作者: Yvette    时间: 2016-3-2 09:39
http://winginx.com/en/htaccess

试试这个
作者: 最帅的人    时间: 2016-3-2 17:20
提示: 作者被禁止或删除 内容自动屏蔽
作者: loveni    时间: 2016-3-2 17:59
不知道
作者: zzr    时间: 2016-3-2 18:52
Yvette 发表于 2016-3-2 09:39
http://winginx.com/en/htaccess

试试这个

为愿意教别人方法的+10086
可惜,。。。。c叼这货关了评分。
作者: 55SHO    时间: 2016-3-2 19:24
Yvette 发表于 2016-3-2 09:39
http://winginx.com/en/htaccess

试试这个

3q  已经收藏




欢迎光临 全球主机交流论坛 (https://fd.vvwvv.eu.org/) Powered by Discuz! X3.4