Redirects not working yet

Hi,

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 www.beeboxdesigns.com
    (I also tried redirects in netlify.toml)

  2. Contents of the _redirects file

    # example redirect /synthtalk/ios-midi-sequencers   https://www.synthtalk.net/articles/ios-midi-sequencers
    /synthtalk/*  https://www.synthtalk.net/:splat 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
    https://www.beeboxdesigns.com/synthtalk/ios-midi-sequencers/

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