Created
June 27, 2020 09:49
-
-
Save Wolfr/4b411fc0b38fd2756fbe786d7535d6ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# htaccess config to redirect SPAs to index.html | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME}.html -f | |
RewriteRule !.*\.html$ %{REQUEST_FILENAME}.html [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule . index.html | |
<Files "*.js"> | |
ForceType text/javascript | |
</Files> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment