Skip to content

Instantly share code, notes, and snippets.

@bobbydank
Created December 15, 2023 15:49
Show Gist options
  • Save bobbydank/bfc19bb84f331e7a090808e22cc3afec to your computer and use it in GitHub Desktop.
Save bobbydank/bfc19bb84f331e7a090808e22cc3afec to your computer and use it in GitHub Desktop.
htaccess for react apps
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.html [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment