301 redirect help

Hello,

I am a not-that-technically-inclined person who foolishly tried to add what I believe was a simple redirect to my redirect YAML, only to cause my site to 404. Even uploading the original redirect code, straight copy-pasted, has not fixed the problem. I’m at onmontlake.com. Any ideas?

301 redirects are cached. Try in a different browser or device - if it’s good there, you’re just waiting for cache to expire.

Nope, you are 404ing for me also.

There’s probably something wrong with your file. Post it here, inside the code tool so it doesn’t get mangled?

Thank you for the reply. Here it is:

301:
    \/p\/(?![0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})(.*): /$1
    \/t\/(?![0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})(.*): /tag/$1
    ^\/subscribe\/?$: /#/portal/subscribe

302:

Could you also share routes.yaml? I think that’s your culprit.

1 Like

Holy smokes, this was a really stupid mistake. Got it fixed. Thanks so much for pointing me in the right direction.

2 Likes