Hi,
We are using ASPNet Zero version 9.0.0, Project ASPNet Core and Angular, Server Azure
Website "https://kpcsv9qa.azurewebsites.net" is working fine and redirecting it to "https://kpcsv9qa.azurewebsites.net/account/login" page.
But when we directly type URL "https://kpcsv9qa.azurewebsites.net/account/login" on the browser or refresh the page then website is throwing "404 Not Found" error.
We used the link https://support.aspnetzero.com/QA/Questions/7787 and made changes in web.config file but it did not help us.
Please let us know the solution for this.
Thank you
Kind Regards, Kumar Prashant
1 Answer(s)
-
0
Hi KPCS, The reason for this problem is that Angular controls routing by itself. If you deploy to IIS or NGINX, you need to configure route rewriting. IIS: https://stackoverflow.com/questions/43785928/angular-2-hosted-on-iis-http-error-404 NGINX: https://stackoverflow.com/questions/45858957/deploy-single-page-application-angular-404-not-found-nginx