Created
September 1, 2018 12:31
-
-
Save zonayedpca/fe19355e31ccd5a8efd52a63f9ef2583 to your computer and use it in GitHub Desktop.
React Router Problem with Apache Servers
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
RewriteEngine on | |
# Don't rewrite files or directories | |
RewriteCond %{REQUEST_FILENAME} -f [OR] | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteRule ^ - [L] | |
# Rewrite everything else to index.html to allow html5 state links | |
RewriteRule ^ index.html [L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment