From e90c9d5a674de5bd8a566d3aee82266d623b2719 Mon Sep 17 00:00:00 2001 From: Uriel Date: Sat, 28 Jun 2008 00:53:24 +0200 Subject: [PATCH] Add new redirectPermanent _config variable --- bin/controller.rc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bin/controller.rc b/bin/controller.rc index 8421494..22ce2d8 100755 --- a/bin/controller.rc +++ b/bin/controller.rc @@ -162,6 +162,17 @@ for ( i in ('' $args) ) { 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