400 ERROR: The request could not be satisfied

1

I am deploying the system on cloudfront services, When I type Url: domain.com/%d it shows "400 ERROR" page. I want it to return to index.html page when the link is wrong. I don't know if this is a Bug or a feature. Example: Link: https://booking.com/%d Enter image description here

BinhVT5
gefragt vor 9 Monaten414 Aufrufe
2 Antworten
1

I think that CloudFront considers this as an invalid HTTP request because %D doesn't correspond to any URL encoded ASCII character.

profile pictureAWS
EXPERTE
achraf
beantwortet vor 9 Monaten
-1

Hi,

If I understood you correctly, you are looking at how to customize error processing in CloudFront. Please take a look here - there are examples of how you can achieve what you want.

profile picture
EXPERTE
beantwortet vor 9 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen