Skip to content

Instantly share code, notes, and snippets.



Forked from alexsasharegan/.htaccess
Created Apr 13, 2021
What would you like to do?
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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment