Redirects stuck in loop

I updated my dynamic routing to add dates to my permalinks and then tried updating my redirects file to make sure old links didn’t die. I followed the instructions given in the documentation, but my URLs are now redirecting to the date repeating.

As an example: https://section1904.com/2025/05/2025/05/2025/05/2025/05/2025/05/2025/05/2025/05/2025/05/2025/05/2025/05/2025/05/2025/05/2025/05/2025/05/2025/05/2025/05/2025/05/2025/05/post-game-san-diego-fc-tops-st-louis-city-sc-2-1/

The posts work fine on the site, the dynamic routing is great, but the redirects just freak our like this (and don’t work). Anyone have any idea what I did wrong?

Post the redirects file. But I’m guessing you’re going to need a ^ to make sure you’re only matching the start of the post, or a match that excludes things that are already in a date format.

302:
  /why-opening-day-matters/: /2025/03/why-opening-day-matters/
  /i-didnt-write-this-ai-did/: /2025/03/i-didnt-write-this-ai-did/
  /state-of-2025-padres-spring-training-opening-day/: /2025/03/state-of-2025-padres-spring-training-opening-day/
  /welcome-to-section-1904/: /2025/03/welcome-to-section-1904/
  /how-its-supposed-to-work-and-how-you-can-help/: /2025/03/how-its-supposed-to-work-and-how-you-can-help/
  /2025-san-diego-padres-season-preview/: /2025/03/2025-san-diego-padres-season-preview/
  /why-you-should-be-watching-san-diego-fc/: /2025/03/why-you-should-be-watching-san-diego-fc/
  /happy-opening-day-2025-padres-braves/: /2025/03/happy-opening-day-2025-padres-braves/
  /sports-in-san-diego-this-weekend/: /2025/03/sports-in-san-diego-this-weekend/
  /wandys-one-pitch-win-an-sdfc-lafc-match-preview/: /2025/03/wandys-one-pitch-win-an-sdfc-lafc-match-preview/
  /a-fan-without-an-nba-home/: /2025/03/a-fan-without-an-nba-home/
  /a-great-day-for-san-diego-sports/: /2025/03/a-great-day-for-san-diego-sports/
  /cheers-to-73-089-happy-fans/: /2025/03/cheers-to-73-089-happy-fans/
  /richard-deitsch-the-padres-financial-disadvantage-is-great/: /2025/04/richard-deitsch-the-padres-financial-disadvantage-is-great/
  /jackson-merrill-signs-9-year-135m-extension-with-padres/: /2025/04/jackson-merrill-signs-9-year-135m-extension-with-padres/
  /reaction-jackson-merrill-9-year-extension-san-diego-padres/: /2025/04/reaction-jackson-merrill-9-year-extension-san-diego-padres/
  /the-evolution-of-media-a-dodgers-padres-rivalry-update/: /2025/04/the-evolution-of-media-a-dodgers-padres-rivalry-update/
  /building-the-plane-while-flying-it/: /2025/04/building-the-plane-while-flying-it/
  /sdfcs-inaugural-season-is-off-to-a-dreamy-start/: /2025/04/sdfcs-inaugural-season-is-off-to-a-dreamy-start/
  /dont-burn-yourself-out/: /2025/04/dont-burn-yourself-out/
  /does-mlb-have-a-stadium-problem/: /2025/04/does-mlb-have-a-stadium-problem/
  /madfriars-john-conniff-if-the-padres-hadnt-made-the-soto-trade/: /2025/04/madfriars-john-conniff-if-the-padres-hadnt-made-the-soto-trade/
  /luka-doncic-lakers-mavericks-sports-fandom-padres-mlb/: /2025/04/luka-doncic-lakers-mavericks-sports-fandom-padres-mlb/
  /padres-off-day-thoughts-april-10-2025/: /2025/04/padres-off-day-thoughts-april-10-2025/
  /podcast-subscriptions-sandiegofc-colorado-padres-angels/: /2025/04/podcast-subscriptions-sandiegofc-colorado-padres-angels/
  /mcasd-hoover-high-sandiego-fc-jersey-designs/: /2025/04/mcasd-hoover-high-sandiego-fc-jersey-designs/
  /anibal-godoy-san-diego-fc-interview-darren-smith/: /2025/04/anibal-godoy-san-diego-fc-interview-darren-smith/
  /grand-opening-grand-closing/: /2025/04/grand-opening-grand-closing/
  /san-diego-earthquake-rory-mcilroy-masters-padres-sdfc/: /2025/04/san-diego-earthquake-rory-mcilroy-masters-padres-sdfc/
  /padres-tatis-nba-postseason-play-in-games/: /2025/04/padres-tatis-nba-postseason-play-in-games/
  /so-youve-subscribed-to-a-private-podcast/: /2025/04/so-youve-subscribed-to-a-private-podcast/
  /steve-sands-rory-mcilroy-masters-grand-slam-nba-padres/: /2025/04/steve-sands-rory-mcilroy-masters-grand-slam-nba-padres/
  /padres-roundtable-quantifying-the-unquantifiable/: /2025/04/padres-roundtable-quantifying-the-unquantifiable/
  /san-diego-fc-sdfc-padres-nba-playoffs/: /2025/04/san-diego-fc-sdfc-padres-nba-playoffs/
  /an-ode-to-the-previous-channel-button/: /2025/04/an-ode-to-the-previous-channel-button/
  /recap-padres-astros-lakers-clippers-playoffs-sdfc-charlotte-wave-fc/: /2025/04/recap-padres-astros-lakers-clippers-playoffs-sdfc-charlotte-wave-fc/
  /padres-injuries-are-piling-up/: /2025/04/padres-injuries-are-piling-up/
  /clippers-san-diego-padres-usa-world-cup/: /2025/04/clippers-san-diego-padres-usa-world-cup/
  /nfl-draft-2025-padres-san-diego-airport-construction-nba-playoffs-announcers: /2025/04/nfl-draft-2025-padres-san-diego-airport-construction-nba-playoffs-announcers/
  /padres-lose-series-best-team-in-baseball-tigers/: /2025/04/padres-lose-series-best-team-in-baseball-tigers/
  /we-owe-you-a-beer/: /2025/04/we-owe-you-a-beer/
  /dont-you-hate-pants/: /2025/04/dont-you-hate-pants/
  /sdfc-looks-toothless-while-losing-rematch-against-rsl/: /2025/04/sdfc-looks-toothless-while-losing-rematch-against-rsl/
  /front-row-seat-padres-get-swept-at-home-lakers-on-the-brink-of-elimination/: /2025/04/front-row-seat-padres-get-swept-at-home-lakers-on-the-brink-of-elimination/
  /weekend-recap-padres-sdfc-xander-bogaerts/: /2025/04/weekend-recap-padres-sdfc-xander-bogaerts/
  /front-row-seat-nba-playoffs-warriors-rockets-padres-shaq/: /2025/04/front-row-seat-nba-playoffs-warriors-rockets-padres-shaq/
  /craig-elsten-padres-sdsu-aztecs-xander-bogaerts/: /2025/04/craig-elsten-padres-sdsu-aztecs-xander-bogaerts/
  /daily-links-padres-sdfc-wave-sdsu-xander-bogaerts/: /2025/04/daily-links-padres-sdfc-wave-sdsu-xander-bogaerts/
  /darren-smith-sitges-spain-padres-nba-playoffs/: /2025/04/darren-smith-sitges-spain-padres-nba-playoffs/
  /front-row-seat-padres-sweep-giants-lakers-lebron-nba-playofffs-wnba/: /2025/05/front-row-seat-padres-sweep-giants-lakers-lebron-nba-playofffs-wnba/
  /nude-beach-padres-lakers-barcelona-inter-milan/: /2025/05/nude-beach-padres-lakers-barcelona-inter-milan/
  /bill-hanstock-on-the-blurred-lines-of-wrestling-and-media/: /2025/05/bill-hanstock-on-the-blurred-lines-of-wrestling-and-media/
  /front-row-seat-knicks-nba-playoffs-padres-sdfc/: /2025/05/front-row-seat-knicks-nba-playoffs-padres-sdfc/
  /the-high-agency-padres-are-changing-efficiency/: /2025/05/the-high-agency-padres-are-changing-efficiency/
  /padres-tatis-pirates-sdfc-dallas-clippers-nba-playoffs/: /2025/05/padres-tatis-pirates-sdfc-dallas-clippers-nba-playoffs/
  /front-row-seat-kolek-padres-sandiegofc-wave-sdsu-usd-legion-nfl-draft/: /2025/05/front-row-seat-kolek-padres-sandiegofc-wave-sdsu-usd-legion-nfl-draft/
  /weekend-recap-padres-sdfc-wave-nfl-draft-nba-playoffs/: /2025/05/weekend-recap-padres-sdfc-wave-nfl-draft-nba-playoffs/
  /how-to-get-behind-the-paywall/: /2025/05/how-to-get-behind-the-paywall/
  /front-row-seat-padres-yankees-sandiegofc-lozano-sdsu-usd-wnba/: /2025/05/front-row-seat-padres-yankees-sandiegofc-lozano-sdsu-usd-wnba/
  /padres-shildt-ejected-tatis-nba-playoffs-brunson-mlb-minor-leagues-popovich/: /2025/05/padres-shildt-ejected-tatis-nba-playoffs-brunson-mlb-minor-leagues-popovich/
  /front-row-seat-padres-nba-haliburton-curry-yankees-barcelona-inter/: /2025/05/front-row-seat-padres-nba-haliburton-curry-yankees-barcelona-inter/
  /watching-a-champions-league-classic-from-spain/: /2025/05/watching-a-champions-league-classic-from-spain/
  /front-row-seat-cease-padres-yankees-sandiegofc-wave-nba-playoffs/: /2025/05/front-row-seat-cease-padres-yankees-sandiegofc-wave-nba-playoffs/
  /holy-white-smoke-we-have-a-new-pope/: /2025/05/holy-white-smoke-we-have-a-new-pope/
  /padres-rockies-colorado-san-diego-fc-st-louis-wave/: /2025/05/padres-rockies-colorado-san-diego-fc-st-louis-wave/
  /what-happened-at-the-nude-beach/: /2025/05/what-happened-at-the-nude-beach/
  /post-game-san-diego-fc-tops-st-louis-city-sc-2-1/: /2025/05/post-game-san-diego-fc-tops-st-louis-city-sc-2-1/
  /front-row-seat-padres-head-home-bud-black-fired/: /2025/05/front-row-seat-padres-head-home-bud-black-fired/```

So the problem is that a lot of these STILL match after redirecting. So then they redirect again. and again…

Try:
^/why-opening-day-matters/: (redirect destination here, no parens)
or possibly

^\/why-opening-day-matters\/: (ditto) 

The ^ matches the start of the path, so that it doesn’t match after the first redirect. / or \/ is a question of whether escaping is needed, and I’m not sure about this example.

Adding ^ before the initial / seems to have done the trick. Thank you!

1 Like