# Getting 404 in Angular app while redirecting with login/callback

**URL:** <https://devforum.okta.com/t/getting-404-in-angular-app-while-redirecting-with-login-callback/30667>\
**Category:** Questions\
**Created:** [September 23, 2024, 7:27am UTC](https://devforum.okta.com/t/getting-404-in-angular-app-while-redirecting-with-login-callback/30667 "2024-09-23T07:27:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaileshkumar](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@shaileshkumar](https://devforum.okta.com/u/shaileshkumar)\
**Post date:** [September 23, 2024, 7:27am UTC](https://devforum.okta.com/t/getting-404-in-angular-app-while-redirecting-with-login-callback/30667/1 "2024-09-23T07:27:33Z")

</div>

Getting 404 in Angular app on higher environments like dev,stage,prod,etc while redirecting with login/callback but content downloads and in local it seems to be working fine.

Need help on the same!

@simone I saw in one of your posts that you faced this issue earlier, could you please help me out on the same!

---

<div class="post-metadata">

**Author:** ![alisaduncan](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/alisaduncan/32/3429_2.png) [@alisaduncan](https://devforum.okta.com/u/alisaduncan)\
**Post date:** [September 23, 2024, 1:04pm UTC](https://devforum.okta.com/t/getting-404-in-angular-app-while-redirecting-with-login-callback/30667/2 "2024-09-23T13:04:09Z")

</div>

Hi @shaileshkumar

Welcome to the community!

You’ll need to configure web servers for SPAs. This is already built in when you run `ng serve` but it’s a required step for deployed SPAs.

Check out these resources from the Angular team

> **[Angular](https://angular.dev/tools/cli/deployment/)**
>
> The web development framework for building modern apps.

Here are examples by web servers

> **[Angular](https://v17.angular.io/guide/deployment#fallback-configuration-examples)**
>
> The web development framework for building modern apps.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [October 23, 2024, 1:04pm UTC](https://devforum.okta.com/t/getting-404-in-angular-app-while-redirecting-with-login-callback/30667/3 "2024-10-23T13:04:53Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
