We are currently developing an angularjs application where users can publish their profiles as resumes.
For example, a valid URL for a published profile would be:
www.page.com/public/johnsmith
However, if the URL is something like:
www.page.com/public/johnsmith2345
which is not a public profile, I want to display a 404 page. The challenge is that due to angular's routing, I need to redirect to the 404 page, resulting in the URL being rewritten as:
www.page.com/404.
What is the correct way to maintain the original URL and ensure it works in IE9?