I am experiencing issues getting my redirections to work. I am sure they worked at one point, but recently I think they completely stopped. This is a little bit more complicated setup, bear with me
Netlify ID: kollitsch-dev.netlify.app
Deployed at : https://kollitsch.dev
Git repo at GitHub - davidsneighbour/kollitsch.dev: Content and website setup for kollitsch.dev
I am building my site with GoHugo and deploy via Netlify CLI. A normal deploy can be tested with the following command chain:
cd repo
npm install
npm run deploy
The deploy command will update and build the site, then deploy. The script is here.
I can confirm, that in my public folder AFTER the build is a _redirects
file with the following content:
################################################################################
# Netlification v1.2.4
################################################################################
/blog/2022/notes-from-the-laboratory-february-2022 /blog/2022/notes-from-the-laboratory-february/
/blog/2022/notes-from-the-laboratory-january-2022 /blog/2022/notes-from-the-laboratory-january/
/* /404.html 404
https://kollitsch-dev.netlify.app* https://kollitsch.dev/:splat 301!
/repos/* https://kollitsch.dev/
/2005/* https://kollitsch.dev/
/2006/* https://kollitsch.dev/
/2007/* https://kollitsch.dev/
/2008/* https://kollitsch.dev/
/tags/kollitsch.de/ https://kollitsch.dev/tags/kollitsch.dev/
/tags/dnb/ https://kollitsch.dev/tags/davidsneighbour/
/repos/textpattern-plugins/current/ https://kollitsch.dev/
The first two redirects miraculously work, none of the other redirects actually work (ending up on the the 404 redirect that I got from the Netlify docs).
What could be the issue? It feels like the file is not parsed for âspecialâ redirects with *
and stops after an error?
I also read in many responses here to check, if the file is actually on the site. I canât When I load https://kollitsch.de/_redirects it shows a file not found page. I know itâs in the public directory, but I donât see a mention of parsed redirects in the netlify deploy command. I tried deploying via Git-hook - same result.