Options -Indexes RewriteEngine On RewriteBase / # Redirect all paths to queries RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?path=$1 [QSA,L] # Serve JSON documents with the correct MIME types AddType application/activity+json .json # Deny access to env file because it contains secrets # See https://httpd.apache.org/docs/2.4/en/mod/mod_authz_core.html#reqall Require all denied