AWS Amplify Status 301

0

I got the status 301 in application. So I need to remove permanent redirecting in Amplify route because end of my URL automatically add one / and showing error

Eg Url : https://test.amplifyapp.com/file**/**

Eg Error: ** <Error> <Code>AccessDenied</Code> <Message>Access Denied</Message> <RequestId>NR3C1PN5GWQZMG5B</RequestId> <HostId>yugKPfgL6YPKX8MR87oaYOEkhrUWSh7uLDqWcILxv3WPGteciQOd4cP+yoVH7UV6cYNv3wbmc9U=</HostId> </Error>**

posta 2 anni fa362 visualizzazioni
2 Risposte
0

Hello,

I understand that you are getting an "AccessDenied" error when trying to access your URL and you want to remove permanent redirect in Amplify.

Redirects enable a web server to reroute navigation from one URL to another. In AWS Amplify redirects and writes have special configurations. Check the Rewrites and redirects settings in the left navigation pane:

AWS Amplify Console > App Settings > Rewrites and Redirects

From there, you can edit your Rewrites and redirects by adding a new rule depending on your use case. Refer [1] for more information on redirect and write in AWS Amplify.

References:

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

I hope this will help.

--Cebi

Cebi
con risposta 2 anni fa
0

If you're using the AWS Amplify Console to manage your app, you can adjust the routing settings in the console.

  • Log in to the AWS Amplify Console.
  • Select your app.
  • Go to "App settings" or a similar section where you can manage routing.
  • Look for settings related to URL redirects or routing rules.
  • If there's a rule causing the 301 redirection, modify it to prevent the extra "/" at the end of URLs.
AWS
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande