shithub: werc

Download patch

ref: d00fc4f38de9590569a3c6233b9f53a29903ab4b
parent: 9c40f7e145e7c3564e2998126ffdf2bbb3edfb43
author: uriel <uriel@suckless.org>
date: Fri Jun 27 20:53:24 EDT 2008

Add new redirectPermanent _config variable

--- a/bin/controller.rc
+++ b/bin/controller.rc
@@ -162,6 +162,17 @@
         inBlog = 'yes'
 }
 
+
+# Redirections and other preprocessing
+if (~ $#redirectPermanent 1) {
+	echo 'Status: 301 Moved Permanantly
+Location: '^$"redirectPermanent^'
+
+'
+}
+
+
+# Template/body selection
 template=$sitedir/$template.tpl
 if (! ~ $#sidebar 0)
     sidebar=tpl/_inc/$sidebar.tpl