.htaccess 343 B

12345678910
  1. RewriteEngine on
  2. # block files and folders beginning with a dot, such as .git
  3. # except for the .well-known folder, which is used for Let's Encrypt and security.txt
  4. RewriteRule (^|/)\.(?!well-known\/) index.php [L]
  5. # make site links work
  6. RewriteCond %{REQUEST_FILENAME} !-f
  7. RewriteCond %{REQUEST_FILENAME} !-d
  8. RewriteRule ^(.*) index.php [L]