From f872c83c631e87d93aac4ae0bd52e1f5288798e6 Mon Sep 17 00:00:00 2001 From: Obsidian Sync Date: Wed, 25 Feb 2026 19:16:45 +0530 Subject: [PATCH] Use 200 proxy redirects for silent URL forwarding --- public/_redirects | 30 +++++++++++++++--------------- scripts/generate-redirects.js | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/public/_redirects b/public/_redirects index 920215e..f9b145c 100644 --- a/public/_redirects +++ b/public/_redirects @@ -1,17 +1,17 @@ # redirects for pretty URLs - generated automatically -/2024-01-06-why-does-every-guest-house-room-have-a-tv-screen /blog/2024-01-06-why-does-every-guest-house-room-have-a-tv-screen 301 -/2025-06-21-crowdsourcing-exam-problems /blog/2025-06-21-crowdsourcing-exam-problems 301 -/2025-07-05-hypothetical-grading-policy /blog/2025-07-05-hypothetical-grading-policy 301 -/2025-07-09-math-human-flourishing-struggle /blog/2025-07-09-math-human-flourishing-struggle 301 -/2025-07-17-teacher-training-initiative /blog/2025-07-17-teacher-training-initiative 301 -/2025-07-21-capacities-pkm /blog/2025-07-21-capacities-pkm 301 -/2025-08-07-nptel-underrated /blog/2025-08-07-nptel-underrated 301 -/2025-08-16-interactive-fiction-textbooks /blog/2025-08-16-interactive-fiction-textbooks 301 -/2025-08-27-vibecoding-manim-slides /blog/2025-08-27-vibecoding-manim-slides 301 -/2025-08-29-grok-a-book-new-editions /blog/2025-08-29-grok-a-book-new-editions 301 -/2025-09-05-pocket-shutdown /blog/2025-09-05-pocket-shutdown 301 -/2025-09-23-ten-years-iitgn /blog/2025-09-23-ten-years-iitgn 301 -/2025-11-17-iisc-time-tracking /blog/2025-11-17-iisc-time-tracking 301 -/2026-02-20-value-of-things-comment /blog/2026-02-20-value-of-things-comment 301 -/2026-02-25-mattermost-for-openclaw /blog/2026-02-25-mattermost-for-openclaw 301 +/2024-01-06-why-does-every-guest-house-room-have-a-tv-screen /blog/2024-01-06-why-does-every-guest-house-room-have-a-tv-screen 200 +/2025-06-21-crowdsourcing-exam-problems /blog/2025-06-21-crowdsourcing-exam-problems 200 +/2025-07-05-hypothetical-grading-policy /blog/2025-07-05-hypothetical-grading-policy 200 +/2025-07-09-math-human-flourishing-struggle /blog/2025-07-09-math-human-flourishing-struggle 200 +/2025-07-17-teacher-training-initiative /blog/2025-07-17-teacher-training-initiative 200 +/2025-07-21-capacities-pkm /blog/2025-07-21-capacities-pkm 200 +/2025-08-07-nptel-underrated /blog/2025-08-07-nptel-underrated 200 +/2025-08-16-interactive-fiction-textbooks /blog/2025-08-16-interactive-fiction-textbooks 200 +/2025-08-27-vibecoding-manim-slides /blog/2025-08-27-vibecoding-manim-slides 200 +/2025-08-29-grok-a-book-new-editions /blog/2025-08-29-grok-a-book-new-editions 200 +/2025-09-05-pocket-shutdown /blog/2025-09-05-pocket-shutdown 200 +/2025-09-23-ten-years-iitgn /blog/2025-09-23-ten-years-iitgn 200 +/2025-11-17-iisc-time-tracking /blog/2025-11-17-iisc-time-tracking 200 +/2026-02-20-value-of-things-comment /blog/2026-02-20-value-of-things-comment 200 +/2026-02-25-mattermost-for-openclaw /blog/2026-02-25-mattermost-for-openclaw 200 diff --git a/scripts/generate-redirects.js b/scripts/generate-redirects.js index b00dbdc..ae17b79 100644 --- a/scripts/generate-redirects.js +++ b/scripts/generate-redirects.js @@ -16,7 +16,7 @@ const entries = fs.readdirSync(contentDir, { withFileTypes: true }); for (const entry of entries) { if (entry.isDirectory()) { const slug = entry.name; - redirects.push(`/${slug} /blog/${slug} 301`); + redirects.push(`/${slug} /blog/${slug} 200`); } }