Add new redirectPermanent _config variable
This commit is contained in:
parent
fe00ee1ebc
commit
e90c9d5a67
1 changed files with 11 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue