# Nextjs: 404 page when accessing /api/auth/login

**URL:** <https://community.auth0.com/t/nextjs-404-page-when-accessing-api-auth-login/110685>\
**Category:** Get Help\
**Tags:** login-prompt-new-experience, login-experience\
**Created:** [July 6, 2023, 2:04pm UTC](https://community.auth0.com/t/nextjs-404-page-when-accessing-api-auth-login/110685 "2023-07-06T14:04:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arjen1](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@arjen1](https://community.auth0.com/u/arjen1)\
**Post date:** [July 6, 2023, 2:04pm UTC](https://community.auth0.com/t/nextjs-404-page-when-accessing-api-auth-login/110685/1 "2023-07-06T14:04:40Z")

</div>

Hi I followed the [Quickstart](https://auth0.com/docs/quickstart/webapp/nextjs/interactive) documentation to the letter, only that I don’t have an `page` folder so my `api` folder is put in the `src` folder.  
I passed the first checkpoint but the second failed, I received a 404-page.  
I’ve been trying to solve this for an hour with no success.  
Is there any way to solve this?

 ![afbeelding](https://global.discourse-cdn.com/auth0/original/3X/d/a/da825bcd72bd1c3da0b87091ae8e0d949e40090a.png)

---

<div class="post-metadata">

**Author:** ![arjen1](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@arjen1](https://community.auth0.com/u/arjen1)\
**Post date:** [July 6, 2023, 2:54pm UTC](https://community.auth0.com/t/nextjs-404-page-when-accessing-api-auth-login/110685/2 "2023-07-06T14:54:20Z")

</div>

I’ve been messing around and changed the `[...auth0].ts` file to `[...auth0]/route.ts`. Because I found it on the internet but now I received a 405 error.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [July 20, 2023, 2:54pm UTC](https://community.auth0.com/t/nextjs-404-page-when-accessing-api-auth-login/110685/3 "2023-07-20T14:54:33Z")

</div>

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