Why isn't my redirect functioning correctly?

Hello everybody,

I created a redirect from

https://dampfabriek.com/collections/squonkers/vandy-vape

to

https://dampfabriek.com/collections/squonkers/

Even after waiting a while, the redirect is not working (even in incognito mode).

Funny things is, the first url corresponds to an empty collection I’m not able to find, so maybe an url that had previouly been changed and redirected?

Many Thanks for your help,

Federico

Hi,

Add the custom liquid code below into your theme.liquid file to fix this problem (add code before close tag)

{%- if request.path == '/collections/squonkers/vandy-vape' -%}

{%- endif -%}
1 Like

It worked, thanks a lot! :folded_hands:

I have the same problem and also copied below answered code and replace with my urls but it’s working. Below my URL is

OLD URL

https://www.orei.com/products/orei-uhd3-exc400m-k-hdmi-extender-over-single-cat5e-cat6-cable-one-to-many-4k-30hz-with-ir-remote-up-to-400-ft?_pos=1&_psq=Uhd3-exc400-k&_ss=e&_v=1.0

New URL

https://www.orei.com/products/uhd-exb400rk-hdbaset-hdmi-extender-400feet?_pos=1&_psq=uhd-exb400r-k&_ss=e&_v=1.0

Please give me solutions.