swerc

anselm's simpler werc fork
git clone git://git.suckless.org/swerc
Log | Files | Refs | README

commit b24aab1f5362549ea6f0eafecc453424a0cb4e16
parent b25f9c917b63fae7e1189db95ed5e5baeccabafa
Author: uriel@suckless.org <unknown>
Date:   Sat, 28 Jun 2008 00:53:24 +0200

Add new redirectPermanent _config variable
Diffstat:
Mbin/controller.rc | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git 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