the okta code with react is working on my vs code laptop, after deploying it on IIS I have issue after logging in OKTA its saying 404 file or directory not found
these are the version of react and OKTA in my application
“@okta/okta-auth-js”: “^7.12.1”,
“@okta/okta-react”: “^6.10.0”,
“@okta/okta-signin-widget”: “^5.5.0”,
“react-print”: “^1.2.4”,
“react-redux”: “^5.0.7”,
“react-router”: “^4.3.1”,
“react-router-dom”: “^5.3.4”,
In order to host a SPA on a web server, you’ll need to configure url rewrite rules. This is something automatically handled when serving locally by dev tooling, but it is required manual configuration for the web server you are hosting on. You’ll need to configure the host to serve the index.html file for all routes to handle client-side routing correctly.
You can search for IIS url rewrite rules for SPAs as your specific scenario may be unique, but here’s a generic examples written for Angular that does something similar.