Skip to content

Instantly share code, notes, and snippets.

@6ui11em
Created June 1, 2021 06:10
Show Gist options
  • Save 6ui11em/cc7a6f299406fdd54a017cfd528e0a1b to your computer and use it in GitHub Desktop.
Save 6ui11em/cc7a6f299406fdd54a017cfd528e0a1b to your computer and use it in GitHub Desktop.
.htaccess: Redirect all to index.html #htaccess #redirect
RewriteEngine On
RewriteBase /
RewriteRule ^index.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment