Bläddra i källkod

Better rewrite for Typecho

lixiang810 5 år sedan
förälder
incheckning
fba8907348
1 ändrade filer med 4 tillägg och 2 borttagningar
  1. 4 2
      config/typecho.conf

+ 4 - 2
config/typecho.conf

@@ -1,3 +1,5 @@
-if (!-e $request_filename) {
-  rewrite ^(.*)$ /index.php$1 last;
+location / {
+  if (!-e $request_filename) {
+    rewrite ^(.*)$ /index.php$1 last;
+  }
 }