Showing results for 
Show  only  | Search instead for 
Did you mean: 

when using plesk with React-router gives 404 not found

I have created a website using React.js , React-router which uses routing for different links.And I was successfully able to deploy it in  firebase web hosting ( ) .When hosting the same webfiles in plesk it works except for which when you link on any one of the links it throws 404 Not Found.I tried adding .htaccess in the httpdocs folder and tried redirecting it to index.html by the following code below.

RewriteEngine On
RewriteRule ^ - [L]

RewriteRule ^ /index.html [L]  

And I found this idea on godaddy community ( React-js-404-error-using-react-router )

But still i cant find a solution .

Help needed.