Netlify.toml url redirect is not working

Our site: climatecentral.netlify.app
I’m trying to redirect a url: https://medialibrary.climatecentral.org to Resources | Climate Central using the following code:
[[redirects]]
from = “/medialibrary.climatecentral.org”
to = “Resources | Climate Central
status = 301
I tried pointing DNS using CNAME medialibrary.cliamtecentral.org to www.climatecentral.org I tried A record pointing to 75.2.60.5
None of it worked, what am I missing here?

Hi @rslabinski, welcome!

First of all you might want to paste your code in the code snippet/preformatted text, easier to read. :wink:

Question though, what’s your setup? Do you have a public repo you could share so we can see the code?
It’s possible that the netlify.toml file is being overruled, in that case you can work with a _redirect file in the root of your website or public folder, depending on your setup.

Maybe you won’t even need the CNAME record eventually.

Gr,

Andy

1 Like

Hi @rslabinski,

Thanks for reaching out!

I see you sent an email to the help desk and being helped there now. We’ll work with you in the help desk to resolve the issue.

1 Like