Skip to content

Instantly share code, notes, and snippets.

@lamngockhuong
Created July 14, 2019 02:14
Show Gist options
  • Save lamngockhuong/2c31ed69a0256fe6451ec08ead05f05a to your computer and use it in GitHub Desktop.
Save lamngockhuong/2c31ed69a0256fe6451ec08ead05f05a to your computer and use it in GitHub Desktop.
Redirect all path to index.html root file - ReactJS on hosting
RewriteBase /
RewriteCond %{REQUEST_URI} !^/(static/?|$)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment