Solved

Why isn't my redirect functioning correctly?

Grillo
Excursionist
16 0 7

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

 

Accepted Solution (1)

FrankMoore
Explorer
44 10 12

This is an accepted solution.

Hi,

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

{%- if request.path == '/collections/squonkers/vandy-vape' -%}
<meta http-equiv="refresh" content="0; url=https://dampfabriek.com/collections/squonkers">
{%- endif -%}

 

Shopify Developer from @Cadifa

View solution in original post

Replies 3 (3)

FrankMoore
Explorer
44 10 12

This is an accepted solution.

Hi,

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

{%- if request.path == '/collections/squonkers/vandy-vape' -%}
<meta http-equiv="refresh" content="0; url=https://dampfabriek.com/collections/squonkers">
{%- endif -%}

 

Shopify Developer from @Cadifa
Grillo
Excursionist
16 0 7

It worked, thanks a lot! 🙏

bombayelectroni
Tourist
7 0 1

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-...

 

New URL

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

 

Please give me solutions.