#Reloading Error in build production mode

6 messages · Page 1 of 1 (latest)

silk pawn
#

Hello, I have an issue, if I open my website let say in url.com/first then I move to url.com/second and in the second I reload the website, the website got an error not found.

I have searched for that problem and mostly people said using HashLocationStrategy which works for me. But I don't want to make my url have a #, so do you have another solution for this?

It's quite weird because the first time I build this website it's normal without # it can be reloaded, but when there are some changes, it's broken. My project is on Angular 14.

Thank you in advanced.

silk pawn
#

so we have to set it on the server right?

#

but what if I use another sever instead of the server that angular team wrote on the documentation

ocean osprey
#

The documentation shows how to do it with Apache, Nginx, IIS, Ruby, Github pages and Firebase. If you use another server, well, read the documentation of that server to know how to do it. What server are you deploying your app to?

silk pawn
#

I haven't ask this to the owner of the server, because I'm currently working in the freelance project