Skip to content

Instantly share code, notes, and snippets.

@t0rik

t0rik/.htaccess

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