From f1497409c5f49f6aa74c3bbe207bce9cef053909 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Thu, 21 Feb 2019 21:50:18 -0500 Subject: [PATCH] rss: Fix header link and redirect broken links I noticed a lot of odd `/rss.xml' requests in my 404 log. As it turns out, it was my fault. This both fixes it and adds a redirect in case someone tries to do this manually. I suppose that'd be convenient. --- conf/lighttpd.conf | 1 + src/header.tpl.htm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/lighttpd.conf b/conf/lighttpd.conf index df2f7e5..c66e7da 100644 --- a/conf/lighttpd.conf +++ b/conf/lighttpd.conf @@ -23,6 +23,7 @@ $HTTP["scheme"] == "https" { "^/2[0-9]{3}/[0-9]+/[0-9]+/(.*)$" => "/$1", "^/papers/git-horror-story" => "/2012/05/a-git-horror-story-repository-integrity-with-signed-commits", "^/thoughts(/.*)?$" => "/$1", + "./rss(\.xml)?$" => "/rss", # trailing RSS requests "^/feed/?" => "/rss", "^/resume/?" => "/about/resume", "^/hoxsl$" => "/hoxsl/", diff --git a/src/header.tpl.htm b/src/header.tpl.htm index 67b8610..77b7cbc 100644 --- a/src/header.tpl.htm +++ b/src/header.tpl.htm @@ -3,7 +3,7 @@ + href="/rss" type="application/rss+xml" /> @PAGE_TITLE@Mike Gerwitz