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:
Added a _redirects file to the /static directory for the site www.beeboxdesigns.com
(I also tried redirects in netlify.toml)
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
Netlify deploy message indicates _redirects was processed with no errors
1 redirect rule processed
All redirect rules deployed without errors.
Tested the rules in Netlify playground Yay! All redirects are valid
when I test this link for example, it is not redirected https://www.beeboxdesigns.com/synthtalk/ios-midi-sequencers/
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.