Skip to content

Instantly share code, notes, and snippets.

@danielt69
Forked from alexsasharegan/.htaccess
Created October 12, 2020 22:03
Show Gist options
  • Save danielt69/76e193352f1d690fc55a3331672ee44e to your computer and use it in GitHub Desktop.
Save danielt69/76e193352f1d690fc55a3331672ee44e to your computer and use it in GitHub Desktop.
Apache Config for React Router - react .htaccess
<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