mirror of
https://github.com/zoe-may/TDoG-Skin.git
synced 2024-11-24 05:42:19 +08:00
35 lines
1.0 KiB
ApacheConf
Executable File
35 lines
1.0 KiB
ApacheConf
Executable File
<IfModule mod_rewrite.c>
|
|
<IfModule mod_negotiation.c>
|
|
Options -MultiViews -Indexes
|
|
</IfModule>
|
|
|
|
RewriteEngine On
|
|
|
|
# You may need to uncomment the following line for some hosting environments,
|
|
# if you have installed to a subdirectory, enter the name here also.
|
|
#
|
|
# RewriteBase /
|
|
|
|
# Black list protected files
|
|
RewriteRule (^\.|/\.) - [F]
|
|
RewriteRule ^storage/.* - [F]
|
|
|
|
# Redirect trailing slashes if not a folder (behind a reverse proxy)
|
|
RewriteCond %{HTTP:X-Forwarded-Proto} ^https$
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteCond %{REQUEST_URI} (.+)/$
|
|
RewriteRule ^ "%{HTTP:X-Forwarded-Proto}://%{HTTP_HOST}%1" [L,R=301]
|
|
|
|
# Redirect trailing slashes if not a folder
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteCond %{REQUEST_URI} (.+)/$
|
|
RewriteRule ^ %1 [L,R=301]
|
|
|
|
# Handle front controller
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteRule ^ index.php [L]
|
|
</IfModule>
|
|
|
|
AddType application/wasm .wasm
|