Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react routes not found on refresh

#You can change your .htaccess file and insert this:
#apacheaccess web server
<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>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #routes #refresh
ADD COMMENT
Topic
Name
8+6 =