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

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

When we upload our react website on the live server, we face an internal server error is reacting. This is a common .htaccess problem; so to resolve this problem, there are some steps which are following:


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 the .htaccess file :

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


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

Categories: web designing react

Trending Courses

CodeIgniter

Regular : 45 Days

Fastrack : 20 Days

Crash : 10 Days

Advance Digital Marketing

Regular : 6 Months

Fastrack : 3 Months

Crash : 2 Months

React JS

Regular : 45 Days

Fastrack : 20 Days

Crash : 7 Days

Laravel

Regular : 45 Days

Fastrack : 20 Days

Crash : 10 Days

Front End Developer

Regular : 7 Month

Fastrack : 4 Month

Crash : 2 Month

Related Blogs

Request For Demo