Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mtg@gnu.org>2019-01-09 00:46:17 -0500
committerMike Gerwitz <mtg@gnu.org>2019-01-16 23:44:35 -0500
commit79f00cd7d2b3e2a3c538d8c6cb07b92fd372911c (patch)
tree451a3b0d0146c52180a37d3d4c40333889851ebb /Makefile
parent9916ad55dc841dda824cdc3baace3606703c5637 (diff)
downloadthoughts-79f00cd7d2b3e2a3c538d8c6cb07b92fd372911c.tar.gz
thoughts-79f00cd7d2b3e2a3c538d8c6cb07b92fd372911c.tar.bz2
thoughts-79f00cd7d2b3e2a3c538d8c6cb07b92fd372911c.zip
Redirect old posts
We have two sitautions to account for: 1. Old posts had both uppercase and lowercase letters in slugs; and 2. Some ids changed. Lighttpd can't convert to lowercase and having a bunch of separate redirects in my webserver configuration for the id changes is messy. So, this script is intended to be called only when a post contains an uppercase character in the path. I had wanted to avoid _any_ sort of dynamic scripts. Oh well. All other redirects are handled in the websevrer configuration (which isn't part of this repo atm).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 20a9475..5a6786e 100644
--- a/Makefile
+++ b/Makefile
@@ -56,7 +56,7 @@ srcpages = src/index.html src/about.html src/papers.html src/posts.html \
www-pages = $(patsubst src/%, $(www-root)/%, $(srcpages))
www-files = $(www-pages) $(www-root)/style.css $(www-root)/rss.xml $(www-paper) \
- $(www-images) $(www-fonts)
+ $(www-images) $(www-fonts) $(www-root)/redirect-map.php
RSS_N=10
export WWW_URL