Browse Source

nginx伪静态规则

tushan 1 year ago
parent
commit
a083583cf0
1 changed files with 5 additions and 0 deletions
  1. 5 0
      nginx.rewrite

+ 5 - 0
nginx.rewrite

@@ -0,0 +1,5 @@
+location ~^/ {
+    if (!-e $request_filename){
+        rewrite  ^(.*)$  /index.php?s=$1  last;   break;
+    }
+}