Skip to content

Instantly share code, notes, and snippets.

@nnzo
Forked from alexsasharegan/.htaccess
Created June 20, 2020 06:31
Show Gist options
  • Save nnzo/173577316dd0f6a308b7ca5c36235061 to your computer and use it in GitHub Desktop.
Save nnzo/173577316dd0f6a308b7ca5c36235061 to your computer and use it in GitHub Desktop.
Apache Config for React Router
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule . /index.html [L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment