Improve htaccess to allow direct access only to assets dir

This commit is contained in:
osaajani 2021-01-26 20:43:39 +01:00
parent 05cb62a503
commit 61ba62ac86
1 changed files with 3 additions and 1 deletions

View File

@ -1,2 +1,4 @@
RewriteEngine on
RewriteRule "!\.(js|ico|ICO|gif|GIF|jpg|JPG|jpeg|JPEG|png|PNG|css|woff|woff2|ttf|wav|ogg|mp3|svg|json)$" index.php
RewriteRule ^assets - [L]
RewriteRule ^.well-known - [L]
RewriteRule . index.php