Skip to content

Next.js site will not allow routing in Amplify despite published answers

0

Subject says it all. I have a next.js site in Amplify.

The site is using a route53 domain.

Every time I try to reach one of its pages im redirected to /

Every solution I find online is the same - follow these steps:

https://docs.aws.amazon.com/amplify/latest/userguide/redirects.html#redirects-for-single-page-web-apps-spa\

Implementing the redirects below makes it so that pages just dont redirect and instead show 404 not found pages when I try.

HeadHeadHead
/<*>/index.html404 (Rewrite)
regex not showing on forum, using SPA regex from AWS link above/index.html200 (Rewrite)

Implementing the redirect below makes it so that all pages, including / show 404 not found.

HeadHeadHead
regex not showing on forum, usingSPA regex from AWS link above/index.html200 (Rewrite)

Removing all redirects completely results in everything routing to / again.

What do I need to do here?

Thank you for any assistance...

asked 3 years ago1.2K views
1 Answer
0

Please disregard, it looks like its mostly all working right in some fashion, I have one page I was checking that must have its own issues to resolve, other pages are redirecting just fine.

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.