2020-07-19 11:23:21 +08:00
|
|
|
# # Apache
|
|
|
|
# # LoadModule rewrite_module modules/mod_rewrite.so
|
|
|
|
# # AllowOverride All
|
2019-12-30 22:07:18 +08:00
|
|
|
RewriteEngine On
|
2020-08-26 17:16:02 +08:00
|
|
|
# RewriteCond $1 !^(.well-known)
|
2019-12-30 22:07:18 +08:00
|
|
|
RewriteRule ^(.*) index.php?/$1 [L]
|
2020-03-11 21:10:51 +08:00
|
|
|
|
2020-07-19 11:23:21 +08:00
|
|
|
###-----------------------------------
|
2020-08-18 17:10:56 +08:00
|
|
|
### nginx
|
|
|
|
# rewrite ^/(?!.well-known)(.*)$ /index.php?/$1 last;
|
2020-03-13 11:03:16 +08:00
|
|
|
#
|
2021-05-24 17:55:28 +08:00
|
|
|
### nginx Subdirectory 在子目录中使用
|
|
|
|
# location /OneManager2/ {
|
|
|
|
# rewrite ^/(.*)$ /OneManager2/index.php?/$1 last;
|
|
|
|
# }
|
|
|
|
#
|
2020-08-18 17:10:56 +08:00
|
|
|
### caddy
|
2020-03-11 21:10:51 +08:00
|
|
|
# rewrite {
|
2020-03-13 11:03:16 +08:00
|
|
|
# to index.php?/$1
|
2020-03-11 21:10:51 +08:00
|
|
|
# }
|
2020-09-27 15:43:48 +08:00
|
|
|
#
|
|
|
|
### caddy2 Caddyfile
|
2020-09-27 16:08:50 +08:00
|
|
|
# @try_files {
|
|
|
|
# not path /.well-known/*
|
|
|
|
# file {
|
|
|
|
# try_files index.php
|
|
|
|
# }
|
|
|
|
# }
|
|
|
|
# rewrite @try_files {http.matchers.file.relative}
|
2020-09-27 15:43:48 +08:00
|
|
|
#
|
2020-07-19 11:23:21 +08:00
|
|
|
###-----------------------------------
|