moonsflyer 10 months ago
parent
commit
bada7da0b6
3 changed files with 9 additions and 8 deletions
  1. 0 8
      public/.htaccess
  2. 8 0
      public/nginx.htaccess
  3. 1 0
      runtime/.gitkeep

+ 0 - 8
public/.htaccess

@@ -1,8 +0,0 @@
-<IfModule mod_rewrite.c>
-  Options +FollowSymlinks -Multiviews
-  RewriteEngine On
-
-  RewriteCond %{REQUEST_FILENAME} !-d
-  RewriteCond %{REQUEST_FILENAME} !-f
-  RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
-</IfModule>

+ 8 - 0
public/nginx.htaccess

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

+ 1 - 0
runtime/.gitkeep

@@ -0,0 +1 @@
+