Require all denied Require all granted Options -MultiViews RewriteEngine On ## ## You may need to uncomment (remove #) the following line for some hosting environments, ## if you have installed to a subdirectory, enter the name here also. ## Example: for https://site.com enter: "/", for https://site.com/something enter: "/something/" ## ## RewriteBase / # Redirect Trailing Slashes If Not A Folder... RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)/$ /$1 [L,R=301] # Handle Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] # Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] Header Set Service-Worker-allowed "/"