Hi folks,
I was trying to set up a redirect for my personal site (abahgat.com , netlify site id: abahgat
) according to the documentation here but can’t get it to work.
I would like to set up a redirect from
https://www.abahgat.com/newsletter/confirmation/?confirmed=true
to
https://www.abahgat.com/newsletter/confirmed
I tried a number of settings in my _redirects
file, such as
/newsletter/confirmation/ confirmed=:confirmed /newsletter/confirmed/ 301
or
/newsletter/confirmation/ confirmed=true /newsletter/confirmed/ 301
and a few other variations, none of which worked.
What am I doing wrong?
Thanks for your help!
perry
April 5, 2021, 5:56pm
2
hi there! can you first confirm that all of your redirects are being processed?
if yes, before we dig in, did you see this brand new guide on debugging redirects?
I strongly suggest you give it a thorough read through and see if this fixes your problem:
Last checked by Netlify Support Team: September 2023.
Introduction
You’ve put blood, sweat and tears into building an incredible static site with all the bells and whistles. However, you’ve configured some redirect rules and you’ve come unstuck… they don’t appear to be working!
Ensure you’ve followed the correct guidance
Our redirects and rewrites document covers a broad range of use cases, from status codes to proxying another service and everything in between.
Ensure you’re using the correc…
if not, please post again, and we’ll try and troubleshoot.
Thank you Perry! Yes,
I see all 56 rules as processed on the deploy summary page.
I have reviewed the support guide page but couldn’t find any indications on what to try next.
I also just tried the following config but it did not work either.
/newsletter/confirmation/ confirmed=:confirmed /newsletter/confirmed/?confirmed=:confirmed 301
Hey there, @abahgat
It looks like this thread has been a bit quiet the past week! Are you still encountering this issue? If so, what additional steps have you taken in the interim?
Let me know! If you are still having trouble I will bring this to a member of our Support team.
Hi Hillary,
Thank you for checking in. Unfortunately I am still running into this problem and have not been able to solve it yet.
Thanks,
Alessandro
Scott
May 17, 2021, 1:39pm
6
/newsletter/confirmation/?confirmed=true /newsletter/confirmed 301!
should do the trick
1 Like