{"id":46000,"date":"2020-03-03T21:01:31","date_gmt":"2020-03-03T13:01:31","guid":{"rendered":"http:\/\/4563.org\/?p=46000"},"modified":"2020-03-03T21:01:31","modified_gmt":"2020-03-03T13:01:31","slug":"%e4%bb%98%e8%b4%b9%e6%b1%82%e5%b8%ae%e6%8a%8a-htaccess%e8%bd%ac%e4%b8%banginx%ef%bc%8c%e6%80%a5%e6%b1%82%ef%bc%8c%e5%9c%a8%e7%ba%bf%e7%ad%89","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=46000","title":{"rendered":"\u4ed8\u8d39\u6c42\u5e2e\u628a.htaccess\u8f6c\u4e3anginx\uff0c\u6025\u6c42\uff0c\u5728\u7ebf\u7b49"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>\u83dc\u82b1\u5927\u76d7<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u4ed8\u8d39\u6c42\u5e2e\u628a.htaccess\u8f6c\u4e3anginx\uff0c\u6025\u6c42\uff0c\u5728\u7ebf\u7b49<\/h3>\n<p>  \t\tOptions +FollowSymLinks<br \/>  RewriteEngine on<br \/>  RewriteBase \/<\/p>\n<p>  &lt;IfModule mod_rewrite.c&gt;<br \/>   RewriteCond %{REQUEST_FILENAME} !-f<br \/>   RewriteCond %{REQUEST_FILENAME} !-d<br \/>  RewriteRule ^page\/(+)\/ pages.php?page=$1  <br \/>  &lt;\/IfModule&gt;<\/p>\n<p>  &lt;IfModule mod_rewrite.c&gt;<br \/>   RewriteCond %{REQUEST_FILENAME} !-f<br \/>   RewriteCond %{REQUEST_FILENAME} !-d<br \/>  RewriteRule ^top\/(+)\/ top.php?p=$1  <br \/>  &lt;\/IfModule&gt;<\/p>\n<p>  &lt;IfModule mod_rewrite.c&gt;<br \/>  RewriteCond %{REQUEST_FILENAME} !-f<br \/>  RewriteRule ^([^\/]+)\/$ $1.php<br \/>  RewriteRule ^([^\/]+)\/([^\/]+)\/$ \/$1\/$2.php<br \/>  RewriteCond %{REQUEST_FILENAME} !-f<br \/>  RewriteCond %{REQUEST_FILENAME} !-d<br \/>  RewriteCond %{REQUEST_URI} !(.{1,5}|\/)$<br \/>  RewriteRule (.*)$ \/$1\/ <br \/>  &lt;\/IfModule&gt;<\/p>\n<p>  &lt;IfModule mod_rewrite.c&gt;<br \/>   RewriteCond %{REQUEST_FILENAME} !-f<br \/>   RewriteCond %{REQUEST_FILENAME} !-d<br \/>   RewriteRule ^(.*)$result.php?domain=$1  <br \/>  &lt;\/IfModule&gt;<\/p>\n<p>  \u5982\u4e0a\u89c4\u5219\uff0c\u8f6c\u4e3anginx<br \/>  \u4e0d\u61c2\u884c\u60c5\uff0c\u7f51\u4e0a\u7684\u81ea\u52a8\u8f6c\u6362\u4e5f\u6ca1\u6210\u529f\uff0c\u5927\u4f6c\u4f1a\u641e\u7684\u76f4\u63a5\u62a5\u4ef7\u79c1\u5bc6\u6211\u652f\u4ed8\u5b9d\u6216\u5fae\u4fe1\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u4e00\u4f4d\u4e0d\u77e5\u540d\u7f51\u53cb<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t# Warning: unknown at line 1:<br \/>  # Options +FollowSymLinks<br \/>  # Warning: unsupported at line 3:<br \/>  # RewriteBase \/<\/p>\n<p>  # Warning: unknown at line 5:<br \/>  # &lt;IfModule mod_rewrite.c&gt;<br \/>  if (!-f $request_filename &amp;&amp; !-d $request_filename) {<br \/>  &nbsp; &nbsp; rewrite ^\/page\/(+)\/ pages.php?page=$1 last;<br \/>  }<br \/>  # Warning: unknown at line 9:<br \/>  # &lt;\/IfModule&gt;<\/p>\n<p>  # Warning: unknown at line 11:<br \/>  # &lt;IfModule mod_rewrite.c&gt;<br \/>  if (!-f $request_filename &amp;&amp; !-d $request_filename) {<br \/>  &nbsp; &nbsp; rewrite ^\/top\/(+)\/ top.php?p=$1 last;<br \/>  }<br \/>  # Warning: unknown at line 15:<br \/>  # &lt;\/IfModule&gt;<\/p>\n<p>  # Warning: unknown at line 17:<br \/>  # &lt;IfModule mod_rewrite.c&gt;<br \/>  if (!-f $request_filename) {<br \/>  &nbsp; &nbsp; rewrite ^\/([^\/]+)\/$ $1.php;<br \/>  }<br \/>  rewrite ^\/([^\/]+)\/([^\/]+)\/$ \/$1\/$2.php;<br \/>  # Warning: unsupported_condition at line 23:<br \/>  # RewriteCond %{REQUEST_URI} !(.{1,5}|\/)$<br \/>  if (!-f $request_filename &amp;&amp; !-d $request_filename) {<br \/>  &nbsp; &nbsp; rewrite (.*)$ \/$1\/ permanent;<br \/>  }<br \/>  # Warning: unknown at line 25:<br \/>  # &lt;\/IfModule&gt;<\/p>\n<p>  # Warning: unknown at line 27:<br \/>  # &lt;IfModule mod_rewrite.c&gt;<br \/>  if (!-f $request_filename &amp;&amp; !-d $request_filename) {<br \/>  &nbsp; &nbsp; rewrite ^\/(.*)$ result.php?domain=$1 last;<br \/>  }<br \/>  # Warning: unknown at line 31:<br \/>  # &lt;\/IfModule&gt;\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>heu<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e00\u4f4d\u4e0d\u77e5\u540d\u7f51\u53cb \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-3 21:11<br \/>  # Warning: unknown at line 1:<br \/>  # Options +FollowSymLinks<br \/>  # Warning: unsupported at line 3:<\/p>\n<p> \u4f60\u8fd9\u4e2a\u673a\u5668\u4eba\u4e5f\u592a\u667a\u80fd\u4e86\u5b57\u6570\u8865\u4e01\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>zaeve<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e0d\u61c2\uff0c\u7ed1\u5b9a\u3002<br \/>  \u6e05\u626b\u5783\u573e\u4eba\u4eba\u6709\u8d23\uff1a\u88ab\u5c4f\u853d\u5e16\u5b50 2# \u4e00\u4f4d\u4e0d\u77e5\u540d\u7f51\u53cb\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>hasamol7468<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 hasamol7468 \u4e8e 2020-3-3 21:19 \u7f16\u8f91 <\/p>\n<p> location \/{<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; if (!-f $request_filename){<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set $rule_0 1$rule_0;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; if (!-d $request_filename){<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set $rule_0 2$rule_0;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; if ($rule_0 = &quot;21&quot;){<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rewrite ^\/top\/(+)\/ \/top.php?p=$1 last;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rewrite ^\/page\/(+)\/ \/page.php?p=$1 last;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rewrite ^\/top\/(+)\/ \/top.php?p=$1 last;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rewrite (.*)$ \/$1\/ redirect;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rewrite ^(.*)$ \/result.php?domain=$1 break;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; }<br \/>  }<br \/>  &#8212;-<br \/>  \u770b\u7740\u4f60\u7684\u89c4\u5219\u6574\u7684 \u53ef\u80fd\u4f1a\u6709\u95ee\u9898 \u4e0d\u505a\u4efb\u4f55\u4fdd\u8bc1\u54e6<br \/>  \u8865\uff1a<br \/>  rewrite (.*)$ \/$1\/ redirect; \u5982\u679c\u6709\u95ee\u9898\u53ef\u4ee5\u5148\u8bd5\u8bd5\u628a\u8fd9\u884c\u53bb\u6389\u54e6\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u70df\u82b1\u4e09\u6708<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 \u70df\u82b1\u4e09\u6708 \u4e8e 2020-3-3 21:16 \u7f16\u8f91 <\/p>\n<p> https:\/\/www.bt.cn\/Tools \u6388\u4eba\u4ee5\u6e14<\/p>\n<p>  rewrite ^page\/(+) pages.php?page=$1 last;<br \/>  rewrite ^top\/(+) top.php?p=$1 last;<br \/>  rewrite ^([^\/]+)\/$ $1.php last;<br \/>  rewrite ^([^\/]+)\/([^\/]+)\/$ $1\/$2.php last;<br \/>  rewrite ^(.*)$ $1 permanent;<br \/>  rewrite ^(.*)$ result.php?domain=$1 last;  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u83dc\u82b1\u5927\u76d7<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\thasamol7468 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-3 21:13<br \/>  if (!-f $request_filename){<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; set $rule_0 1$rule_0;<br \/>  }<\/p>\n<p> \u611f\u8c22\uff0c\u6211\u8bd5\u8bd5\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Effervescence<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tlocation ~ &quot;(.{1,5}|\/)$&quot; {<br \/>  }<\/p>\n<p>  location \/ {<br \/>  if (!-e $request_filename){<br \/>  &nbsp; &nbsp; rewrite ^\/page\/(+)\/ \/pages.php?page=$1 break;<br \/>  }<br \/>  if (!-e $request_filename){<br \/>  &nbsp; &nbsp; rewrite ^\/top\/(+)\/ \/top.php?p=$1 break;<br \/>  }<br \/>  if (!-e $request_filename){<br \/>  &nbsp; &nbsp; rewrite ^\/([^\/]+)\/$ \/$1.php;<br \/>  }<br \/>  rewrite ^\/([^\/]+)\/([^\/]+)\/$ \/$1\/$2.php;<br \/>  if (!-e $request_filename){<br \/>  &nbsp; &nbsp; rewrite (.*)$ \/$1\/ redirect;<br \/>  }<br \/>  if (!-e $request_filename){<br \/>  &nbsp; &nbsp; rewrite ^(.*)$ \/result.php?domain=$1 break;<br \/>  }<br \/>  }\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u83dc\u82b1\u5927\u76d7<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tEffervescence \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-3 21:18<br \/>  location ~ &quot;(.{1,5}|\/)$&quot; {<br \/>  }<\/p>\n<p> \u8fd9\u662f\u5de5\u5177\u8f6c\u7684\u5427\uff0c\u6211\u8bd5\u8fc7\uff0c\u4e0d\u884c\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u83dc\u82b1\u5927\u76d7<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u70df\u82b1\u4e09\u6708 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-3 21:15<br \/>  https:\/\/www.bt.cn\/Tools \u6388\u4eba\u4ee5\u6e14<\/p>\n<p> \u8fd9\u4e2a\u4f1a\u91cd\u5b9a\u5411\u7684\u6b21\u6570\u8fc7\u591a\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u83dc\u82b1\u5927\u76d7 \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u4ed8\u8d39\u6c42\u5e2e&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/46000"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=46000"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/46000\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=46000"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=46000"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=46000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}