Last active
November 3, 2021 14:33
-
-
Save vickymessii/948fb86299f10a55c9d04b6cc75024f4 to your computer and use it in GitHub Desktop.
React Routing Refresh page issue fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> | |
# Reference https://stackoverflow.com/a/40591955/8083975 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment