Route53 redirect breaks URL inserting a space
EDIT: Solved, it was an AWS Amplify rewrite rule with a space, not Route53.
Hello,
I am redirecting an apex-domain to www.apex-domain using Route53 and record type A. I thought it worked since Google search and Chrome redirect correctly but on closer inspection Bing and curl fail. turns out the former are more forgiving than the latter.
What happens is apex-domain/some/where gets redirected to www.apex-domain /some/where (note the space/tab) instead of www.apex-domain/some/where.
I checked the redirect record for spaces or errors and even recreated it. No luck. I cannot find any information on this kind of issue (or I am searching the wrong terms). Any help appreciated!
(Edit adding image)
Posted Jun 30, 2022, 7:53 AM UTC · edited
17
What exactly do you have configured in Route53 for the apex and www records?
It sounds like you are doing an HTTP redirect so Route53 is not the issue - check the configuration of your webserver instead.
Thanks, I added a screenshot. Route53 allows a redirect to a record hosted in the zone which I used/did.
Route53 doesn’t do redirects. It only performs DNS functions and redirection isn’t a DNS function. Something else is performing the redirect.
It may not be a DNS feature
but it is one in Route53 (see image and docs). I am unclear how it implements it.That is not a redirect. It is an alias. It will not result in any change to the domain value in the browser when invoked. It just indicates another DNS record will be evaluated to determine the IP address returned by a client lookup.