跳至內容

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...

已提問 3 年前檢視次數 1178 次
1 個回答
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.

已回答 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。