Hi everyone, I’ve placed my app on a web server, but when I refresh the browser, I’m getting a 404 error. I’ve been informed that this might be related to not having a .htaccess
file. Does anyone have any insights or suggestions on how to resolve this issue? Any advice would be greatly appreciated!
Regards
Darshan Hiranandani
You are going to have to provide more information.
- How/where are you deploying it
- What web server are you using, NGINX, Apache, IIS?
It is very likely due to a misconfiguration of your web server. All URLs need to be rewritten to your index.html
file. How you do this depends on the web server. With Apache, the .htaccess
file. With NGINX, the site’s *.conf
file.
You should be able to search for “rewrite to index.html” with the web server you are using and find the needed syntax/configuration.