-
-
Save vogdb/db952c61e0cf71cbd606e1ad554792c9 to your computer and use it in GitHub Desktop.
.htaccess File for SvelteKit Single-Page-Applications
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
# Rewrite non /app/build/ requests to /app/build/ | |
RewriteCond %{REQUEST_URI} !^/app/build/ | |
RewriteRule ^(.*)$ /app/build/$1 [L] | |
# Rewrite requests to non-existing files/dirs to /app/build/index.html | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ /app/build/index.html [L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment