URL redirect not working from homepage

Hi there.

My end goal is to create a redirect that goes from page A to page B while retaining the query parameters.

This isn’t hard to do, I can get www.website/pageA?query=1 to redirect to www.website/pageB?query=1 just fine.

My problem occurs when I try redirect the home page, www.website.com/?query=1 to www.website/pageB?query=1, this never works.

The parameter is known, so I don’t even need a flexible redirect. What am I doing wrong?

Hi @MattOnce,

What you’re hoping to do should be possible without a problem. I just tested the structure in one of our portals and it works as you described (I changed the URLS for the screenshot): redirecting the home to a new page and retaining the query string.

A couple of things to check:

  • Make sure Match Query Strings is checked
  • Uncheck the box to disable when a page exists at the requested URL
  • Double-check that there is not a redirect with a higher priority that is negating this new redirect

Hope this helps!

Thank you, Josh.

My settings (in some of my attempts) were the same as yours, but I updated my current redirect to match your settings. I found that it now works, but not every time I load the original page. I have no idea why. Doing more tests seem to indicate that the redirect is occuring more often, so hopefully that means it will eventually worj 100% of the time, as expected.

Thanks again!

Hi @MattOnce,

Can you try setting your original URL to: Online Appointment Booking Software - Unmatched Free Plan | OnceHub

If that doesn’t work, please also share a screenshot of the redirect settings.

Josh

Hi Josh, thanks again for the reply.

Even if I add the “/”, Hubspot seems to remove it automatically on Save/Update.
Here is a screenshot:

Hi again, Josh

The problem seemed to be fixed earlier, but has stopped redirecting again. I will share the actual url I’m trying to redirect, in the hopes that you could test it your side and see if you gain any more insights.
Orignal url: Online Appointment Booking Software - Unmatched Free Plan | OnceHub
Redirected to: Signup | Oncehub

Thanks again.

Hi @MattOnce,

Are the results still intermittent? I have tested from a couple of browsers and incognito windows on my side and it’s currently working consistently.

Are there other similar redirects in place as this current has a position of 1,000,000. You can try making that number much smaller to see if it is more consistent. If so, there’s some other conflict in your redirect listings.