Answers for "on refreshing the page the url is getting set to mian page url in react router"

0

can't bookmark react router

// Add the following to .htaccess file in the public folder
// NOTE: This is for Apache servers!

<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>
Posted by: Guest on June-04-2020

Code answers related to "on refreshing the page the url is getting set to mian page url in react router"

Code answers related to "Javascript"

Browse Popular Code Answers by Language