Skip to content

Instantly share code, notes, and snippets.

@Xatta-Trone
Forked from davemackintosh/.htaccess
Created September 29, 2022 13:49
Show Gist options
  • Save Xatta-Trone/a8daa76f24a959615eff1530a4de6e5f to your computer and use it in GitHub Desktop.
Save Xatta-Trone/a8daa76f24a959615eff1530a4de6e5f 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