Preserve Query String Not Working For Redirect

What is the name of the domain?

none

What is the error number?

none

What is the error message?

no error message - it just isn’t working

What is the issue you’re encountering

I’m redirecting all traffic from a domain to the following URL - https://www.godaddy.com/domainsearch/find?domainToCheck=test.com and it always resolves to https://www.godaddy.com/domainsearch/find and doesn’t include the query string even though I have that option checked in my redirect rule.

What steps have you taken to resolve the issue?

Checked forums and help articles

What are the steps to reproduce the issue?

Visit the domain

Screenshot of the error

“Preserve query string” refers to the query string of the request, not the redirect target, so as the query string of the request is blank when you go to your domain that is replacing the one in your redirect.

You haven’t given the domain you are redirecting from to test, but try turning off “preserve query string”.

2 Likes

Thanks, I have tried it with that box unchecked as well and it still just redirects to https://www.godaddy.com/domainsearch/find

I’d prefer to keep the domain private but I would need to update the rule first with suggestions, which I just go and test right away anyways.

So do I need to write my forwarding a different way then or can you never forward to a URL that has URL parameters?

Thanks For Your Help

It shouldn’t: Redirect to a url with query strings. I have deployed a rule like yours in my test environment with Preserve query string unchecked, and I see the right target in the redirect:

* Request completely sent off
< HTTP/2 301 
< date: Thu, 05 Dec 2024 11:51:46 GMT
< content-type: text/html
< content-length: 167
< location: https://www.godaddy.com/domainsearch/find?domainToCheck=test.com
< cache-control: max-age=3600
< expires: Thu, 05 Dec 2024 12:51:46 GMT
< ip-test: test
< server: cloudflare
< cf-ray: 8ed3d3833962ef0d-LHR
< alt-svc: h3=":443"; ma=86400
< server-timing: cfReqDur;dur=51.33;Request Duration
< cf-team: 24384285f80000ef0d16377400000001

Thank you, I forgot to post an update. Unchecking the box worked. The thing that caused me problems is that I had to test this in a different browser. Chrome was caching the previous redirect settings and so I wasn’t actually seeing the updated redirect settings and so it seemed like a fail since the old redirect was cached.

1 Like