Angular 7 Folder Access Does Not Work

Paul Konstanski
Paul Konstanski used Ask the Experts™
on
I have an Angular 7 Website that I developed on my local machine that works fine when I do a direct link to a page on my localhost.

http://localhost:4200/signin

But when I then deploy the site to a public server, the site only works when I go to the root.

This Works:
http://makeyourlifecount.org

This Does NOT Work!
http://makeyourlifecount.org/signin

I get an error message on the NOT work link that reads:

Not Found
The requested URL /signin was not found on this server.
Apache/2.2.34 Server at makeyourlifecount.org Port 80

I am not sure where to begin looking to try to solve the problem. There is no .htaccess file on this server. Do I need one?

Why would the direct access work on my local machine and not on the public server. Thanks.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Project Specialist
Commented:
I found this in the documentation. I added the .htaccess routing and now it works fine.

https://angular.io/guide/deployment#fallback

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial