mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2025-02-17 14:49:27 +08:00
Update .htaccess
This commit is contained in:
parent
534224c212
commit
a237037ade
28
.htaccess
28
.htaccess
@ -1,10 +1,26 @@
|
||||
RewriteEngine On
|
||||
<IfModule mod_rewrite.c>
|
||||
<IfModule mod_negotiation.c>
|
||||
Options -MultiViews -Indexes
|
||||
</IfModule>
|
||||
|
||||
RewriteBase /
|
||||
RewriteEngine On
|
||||
|
||||
RewriteRule (^\.|/\.) - [F]
|
||||
# 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 /
|
||||
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
# Black list protected files
|
||||
RewriteRule (^\.|/\.) - [F]
|
||||
RewriteRule ^storage/.* - [F]
|
||||
|
||||
RewriteRule ^.*$ index.php [L]
|
||||
# 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>
|
||||
|
Loading…
Reference in New Issue
Block a user