Created
December 29, 2022 15:29
-
-
Save abdelfattahradwan/a1b9a0951c0069715d133dac7c3e5cc0 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