Home
Support Forums

Nextjs Redirct in netlify.toml

netlify site name: test-nftpricefloor.netlify.app

Hi!

I have a netlify.toml with this configuration

[[headers]]

  for = "/_next/static/css/*"
  [headers.values]
    cache-control = '''
    public,
    max-age=360000'''

[[redirects]]
  from = "/boredApesYC"
  to = "/boredApeYC"

[[redirects]]
  from = "/boredApesKC"
  to = "/boredApeKC"

[[redirects]]
  from = "/mutantApesYC"
  to = "/mutantApesYC"

[[redirects]]
  from = "/faq"
  to = "/faqs"

The cache-control applied on the headers section works but not the redirects, I’m doing something wrong?

Thanks

hi there, i do think that your redirects syntax isn’t quite right.

I strongly suggest you give it a thorough read through and see if this fixes your problem:

if not, please post again, and we’ll try and troubleshoot.