React JS Throwing 500 Internal Server Error On Live Server | React Router Error in Live Server

Training Mode Regular Fastrack Crash
Classroom | Online
Course Description :
Solution : 

Step 1 :
Create .htaccess file in react js root folder where index.html or serviceworker.js file exist

Step 2 :
 Paste the following code in .htaccess file :

RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]


Step 3 : Save .htaccess file and enjoy your working application

Request a Demo

Whatsapp