Update .htaccess

This commit is contained in:
Visman 2020-05-30 13:16:48 +07:00
parent 0ebd8419a7
commit 9028d7f11a
3 changed files with 12 additions and 3 deletions

View file

@ -1,5 +1,9 @@
AddDefaultCharset UTF-8
<IfModule mod_autoindex.c>
Options -Indexes
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /
@ -9,6 +13,8 @@ AddDefaultCharset UTF-8
RewriteRule !^public/. index.php [L]
RewriteRule \.dist\. index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^public/ index.php [L]
</IfModule>

View file

@ -1,4 +1 @@
<Limit GET POST PUT>
Order Allow,Deny
Deny from All
</Limit>

View file

@ -1,9 +1,15 @@
AddDefaultCharset UTF-8
<IfModule mod_autoindex.c>
Options -Indexes
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /
RewriteRule \.dist\. index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^/favicon\.ico$
RewriteCond %{REQUEST_URI} !^/robots\.txt$