0

I deploy a React app to IIS and it works well but when I press F5 to reload the page, it shows 404 error page. I have created a web.config file to root folder in server Is there anyone can help me so I can reload the page after deployed to IIS without this error?

Thank you in advanced.

DA0405
  • 1
  • It almost indicates you missed the rewrite rules to route everything back to the index page. You can find a lot of articles from search engines like https://medium.com/@mateioprea/setting-up-a-react-app-with-react-router-in-iis-71cb86aee376 – Lex Li Jul 12 '22 at 19:38
  • https://stackoverflow.com/questions/56373134/when-page-refresh-404-file-or-directory-not-found same topic – Ali Tayyip Aydin Oct 07 '22 at 08:08

0 Answers0