Redirects not working yet


I’ve read through posts here, tried a few things and could use some advice on getting redirects working for my Hugo project. Here’s what I know so far:

  1. Added a _redirects file to the /static directory for the site
    (I also tried redirects in netlify.toml)

  2. Contents of the _redirects file

    # example redirect /synthtalk/ios-midi-sequencers
    /synthtalk/* 301
  1. Netlify deploy message indicates _redirects was processed with no errors
    1 redirect rule processed
    All redirect rules deployed without errors.
  1. Tested the rules in Netlify playground
    Yay! All redirects are valid

  2. when I test this link for example, it is not redirected

Thank you for any suggestions

Because you have the same page on each of your sites, you need to force the redirect with the 301! instead of the 301 directive. Otherwise, Netlify serves the page that is there.

See the definition of “force” in the “syntax” section of the Redirects docs page.

There is more information about this here.

1 Like

@gregraven Thank you! Using the “force” option got it working. Solved.
The references were helpful.

1 Like