提问三步曲: 提问先看教程/FAQ索引(wdcp,wdcp_v3,一键包)及搜索,会让你更快解决问题
1 提供详细,如系统版本,wdcp版本,软件版本等及错误的详细信息,贴上论坛或截图发论坛
2 做过哪些操作或改动设置等
温馨提示:信息不详,很可能会没人理你!论坛有教程说明的,也可能没人理!因为,你懂的
我把Apache htaccess 转换Nginx 伪静态规则后导致Nginx服务不能启动
原规则:
- RewriteRule ^(.*)/uid-([a-z|0-9]+)\.html\?*(.*)$ $1/index\.php\?$2\.html
- RewriteRule ^(.*)index.html\?*(.*)$ $1/index\.php
- RewriteRule ^(.*)login.html\?*(.*)$ $1/login\.php
- RewriteRule ^(.*)reg.html\?*(.*)$ $1/reg\.php
- RewriteRule ^(.*)uid-([a-z|0-9]+)\.html\?*(.*)$ $1/index\.php\?$2\.html
- RewriteRule ^(.*)/([a-z]+)-([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+)\.html\?*(.*)$ $1/$2\.php\?$3-$4-$5\.html
- RewriteRule ^(.*)/([a-z]+)-([0-9]+)-([0-9]*)-([a-z|0-9]*)-([a-z|0-9]+)\.html\?*(.*)$ $1/$2\.php\?$3-$4-$5-$6\.html
- RewriteRule ^(.*)news/([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+)\.html\?*(.*)$ $1/news/show_news\.php\?$2-$3-$4\.html
- RewriteRule ^(.*)notice/([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+)\.html\?*(.*)$ $1/notice/show_notice\.php\?$2-$3-$4\.html
- RewriteRule ^(.*)gl/([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+)\.html\?*(.*)$ $1/gl/show_gl\.php\?$2-$3-$4\.html
- RewriteRule ^(.*)game/([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+)\.html\?*(.*)$ $1/game/show_game\.php\?$2-$3-$4\.html
- RewriteRule ^(.*)company/([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+)\.html\?*(.*)$ $1/company/show_company\.php\?$2-$3-$4\.html
- RewriteRule ^(.*)cdkey/([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+)\.html\?*(.*)$ $1/cdkey/show_cdkey\.php\?$2-$3-$4\.html
- RewriteRule ^(.*)gamepic/([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+)\.html\?*(.*)$ $1/gamepic/show_gamepic\.php\?$2-$3-$4\.html
- RewriteRule ^(.*)media/([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+)\.html\?*(.*)$ $1/media/show_media\.php\?$2-$3-$4\.html
- 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
复制代码
转换后的规则:
- if ($rule_0 = ""){rewrite ^/(.*)/uid-([a-z|0-9]+).html?*(.*)$ /$1/index.php?$2.html;}
- if ($rule_1 = ""){rewrite ^/(.*)index.html?*(.*)$ /$1/index.php;}
- if ($rule_2 = ""){rewrite ^/(.*)login.html?*(.*)$ /$1/login.php;}
- if ($rule_3 = ""){rewrite ^/(.*)reg.html?*(.*)$ /$1/reg.php;}
- if ($rule_4 = ""){rewrite ^/(.*)uid-([a-z|0-9]+).html?*(.*)$ /$1/index.php?$2.html;}
- if ($rule_5 = ""){rewrite ^/(.*)/([a-z]+)-([0-9]+)-([a-z|0-9]*)-([a-z|0-9]+).html?*(.*)$ /$1/$2.php?$3-$4-$5.html;}
- 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;}
- 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;}
- 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;}
- 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;}
- 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;}
- 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;}
- 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;}
- 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;}
- 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;}
- 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;}
复制代码
搞了半天也搞不明白希望有能力的朋友帮助一下谢谢 |