无标题文档
wdCP系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用教程) wdCDN系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用手册)
wdOS系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用教程) wdDNS系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用手册)
注册 发贴 提问 回复-必看必看 wddns免费智能 DNS 开通 本地或虚拟机使 用wdcp 一键包在mysql编 译时"卡住"
AI导航网AI应用网站大全 wdcp官方技术支持/服务 阿里云8折优惠券 无敌云 腾讯云优惠中,现注册更有260代金额券赠送
返回列表 发帖
提问三步曲: 提问先看教程/FAQ索引(wdcp,wdcp_v3,一键包)及搜索,会让你更快解决问题
1 提供详细,如系统版本,wdcp版本,软件版本等及错误的详细信息,贴上论坛或截图发论坛
2 做过哪些操作或改动设置等

温馨提示:信息不详,很可能会没人理你!论坛有教程说明的,也可能没人理!因为,你懂的

[求助] 求个Nginx下的伪静态规则

我把Apache htaccess 转换Nginx 伪静态规则后导致Nginx服务不能启动
原规则:
  1. RewriteRule ^(.*)/uid-([a-z|0-9]+)\.html\?*(.*)$ $1/index\.php\?$2\.html
  2. RewriteRule ^(.*)index.html\?*(.*)$ $1/index\.php
  3. RewriteRule ^(.*)login.html\?*(.*)$ $1/login\.php
  4. RewriteRule ^(.*)reg.html\?*(.*)$ $1/reg\.php
  5. RewriteRule ^(.*)uid-([a-z|0-9]+)\.html\?*(.*)$ $1/index\.php\?$2\.html
  6. RewriteRule ^(.*)/([a-z]+)-([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+)\.html\?*(.*)$ $1/$2\.php\?$3-$4-$5\.html
  7. RewriteRule ^(.*)/([a-z]+)-([0-9]+)-([0-9]*)-([a-z|0-9]*)-([a-z|0-9]+)\.html\?*(.*)$ $1/$2\.php\?$3-$4-$5-$6\.html
  8. RewriteRule ^(.*)news/([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+)\.html\?*(.*)$ $1/news/show_news\.php\?$2-$3-$4\.html
  9. RewriteRule ^(.*)notice/([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+)\.html\?*(.*)$ $1/notice/show_notice\.php\?$2-$3-$4\.html
  10. RewriteRule ^(.*)gl/([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+)\.html\?*(.*)$ $1/gl/show_gl\.php\?$2-$3-$4\.html
  11. RewriteRule ^(.*)game/([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+)\.html\?*(.*)$ $1/game/show_game\.php\?$2-$3-$4\.html
  12. RewriteRule ^(.*)company/([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+)\.html\?*(.*)$ $1/company/show_company\.php\?$2-$3-$4\.html
  13. RewriteRule ^(.*)cdkey/([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+)\.html\?*(.*)$ $1/cdkey/show_cdkey\.php\?$2-$3-$4\.html
  14. RewriteRule ^(.*)gamepic/([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+)\.html\?*(.*)$ $1/gamepic/show_gamepic\.php\?$2-$3-$4\.html
  15. RewriteRule ^(.*)media/([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+)\.html\?*(.*)$ $1/media/show_media\.php\?$2-$3-$4\.html
  16. RewriteRule ^(.*)cdkey/([0-9]+)-([0-9]*)-([a-z|0-9]*)-([a-z|0-9]+)\.html\?*(.*)$ $1/cdkey/show_cdkey\.php\?$2-$3-$4-$5\.html
复制代码

转换后的规则:
  1. if ($rule_0 = ""){rewrite ^/(.*)/uid-([a-z|0-9]+).html?*(.*)$ /$1/index.php?$2.html;}
  2. if ($rule_1 = ""){rewrite ^/(.*)index.html?*(.*)$ /$1/index.php;}
  3. if ($rule_2 = ""){rewrite ^/(.*)login.html?*(.*)$ /$1/login.php;}
  4. if ($rule_3 = ""){rewrite ^/(.*)reg.html?*(.*)$ /$1/reg.php;}
  5. if ($rule_4 = ""){rewrite ^/(.*)uid-([a-z|0-9]+).html?*(.*)$ /$1/index.php?$2.html;}
  6. if ($rule_5 = ""){rewrite ^/(.*)/([a-z]+)-([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+).html?*(.*)$ /$1/$2.php?$3-$4-$5.html;}
  7. if ($rule_6 = ""){rewrite ^/(.*)/([a-z]+)-([0-9]+)-([0-9]*)-([a-z|0-9]*)-([a-z|0-9]+).html?*(.*)$ /$1/$2.php?$3-$4-$5-$6.html;}
  8. if ($rule_7 = ""){rewrite ^/(.*)news/([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+).html?*(.*)$ /$1/news/show_news.php?$2-$3-$4.html;}
  9. if ($rule_8 = ""){rewrite ^/(.*)notice/([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+).html?*(.*)$ /$1/notice/show_notice.php?$2-$3-$4.html;}
  10. if ($rule_9 = ""){rewrite ^/(.*)gl/([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+).html?*(.*)$ /$1/gl/show_gl.php?$2-$3-$4.html;}
  11. if ($rule_10 = ""){rewrite ^/(.*)game/([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+).html?*(.*)$ /$1/game/show_game.php?$2-$3-$4.html;}
  12. if ($rule_11 = ""){rewrite ^/(.*)company/([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+).html?*(.*)$ /$1/company/show_company.php?$2-$3-$4.html;}
  13. if ($rule_12 = ""){rewrite ^/(.*)cdkey/([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+).html?*(.*)$ /$1/cdkey/show_cdkey.php?$2-$3-$4.html;}
  14. if ($rule_13 = ""){rewrite ^/(.*)gamepic/([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+).html?*(.*)$ /$1/gamepic/show_gamepic.php?$2-$3-$4.html;}
  15. if ($rule_14 = ""){rewrite ^/(.*)media/([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+).html?*(.*)$ /$1/media/show_media.php?$2-$3-$4.html;}
  16. if ($rule_15 = ""){rewrite ^/(.*)cdkey/([0-9]+)-([0-9]*)-([a-z|0-9]*)-([a-z|0-9]+).html?*(.*)$ /$1/cdkey/show_cdkey.php?$2-$3-$4-$5.html;}
复制代码

搞了半天也搞不明白希望有能力的朋友帮助一下谢谢
http://521mp3.net

返回列表