Initial support for pseudo-static environment

This commit is contained in:
Crazy-White
2020-10-04 22:41:00 +08:00
parent c502a1b6ab
commit 1a86fe8cbf
3 changed files with 79 additions and 9 deletions
+8 -4
View File
@@ -2,16 +2,20 @@
# # LoadModule rewrite_module modules/mod_rewrite.so
# # AllowOverride All
RewriteEngine On
# RewriteCond $1 !^(.well-known)
RewriteRule ^(.*) index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php/$1 [L]
###-----------------------------------
### nginx
# rewrite ^/(?!.well-known)(.*)$ /index.php?/$1 last;
#
# if (!-e $request_filename) {
# rewrite ^(.*)$ /index.php/$1 last;
# }
#
### caddy
# rewrite {
# to index.php?/$1
# to index.php/$1
# }
#
### caddy2 Caddyfile