add Caddy2 rule

This commit is contained in:
qkqpttgf 2020-09-27 16:08:50 +08:00 committed by GitHub
parent 061da4fd7c
commit 4e526f4c58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 5 deletions

View File

@ -14,11 +14,13 @@ RewriteRule ^(.*) index.php?/$1 [L]
# to index.php?/$1
# }
#
### caddy2 json
# "handler": "rewrite",
# "uri": "index.php?{http.request.uri.query}"
#
### caddy2 Caddyfile
# rewrite * index.php?{query}
# @try_files {
# not path /.well-known/*
# file {
# try_files index.php
# }
# }
# rewrite @try_files {http.matchers.file.relative}
#
###-----------------------------------