Skip to content

Instantly share code, notes, and snippets.

@scsskid
Forked from davemackintosh/.htaccess
Created February 27, 2020 17:57
Show Gist options
  • Save scsskid/793d1b63dcc7bd0f892e2d8c5feed296 to your computer and use it in GitHub Desktop.
Save scsskid/793d1b63dcc7bd0f892e2d8c5feed296 to your computer and use it in GitHub Desktop.
Working .htaccess for Single Page Apps
<ifModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /index.html [QSA,L]
</ifModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment