Skip to content

Instantly share code, notes, and snippets.

@williamsiuhang
Created October 15, 2019 18:11
Show Gist options
  • Save williamsiuhang/0baee301b1924c44ab654aac86508234 to your computer and use it in GitHub Desktop.
Save williamsiuhang/0baee301b1924c44ab654aac86508234 to your computer and use it in GitHub Desktop.
Apache .htaccess to fix 404 issue with React Router client routing
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.html [QSA,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment