diff --git a/.htaccess b/.htaccess index 200123c..b0f5e4c 100644 --- a/.htaccess +++ b/.htaccess @@ -1,10 +1,10 @@ # Allow access if Flarum is installed in a subdirectory, # but another .htaccess in a higher directory denies access. - + Require all granted - + Order Allow,Deny Allow from all @@ -14,11 +14,17 @@ RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] + RewriteRule ^vendor/(.*)?$ / [F,L] + RewriteRule ^storage/(.*)?$ / [F,L] + RewriteRule ^config.php$ / [F,L] + RewriteRule ^api(.*)$ api.php [QSA,L] RewriteRule ^admin(.*)$ admin.php [QSA,L] + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d RewriteRule !^assets index.php [QSA,L] - + # MultiViews can mess up our rewriting scheme Options -MultiViews