Don't execute perm_redirects directly from conf_perm_redirect to avoid tripping over sitemaps and other code that sources config files but doesn't want to actually *do* anything. Also hide paths with simple or pattern redirects from sitemaps.
This commit is contained in:
parent
af66a69dd9
commit
7ba725cf92
3 changed files with 20 additions and 14 deletions
|
|
@ -81,6 +81,8 @@ fn werc_exec_request {
|
|||
}
|
||||
cd $werc_root
|
||||
|
||||
if(~ $#perm_redir_to 1)
|
||||
perm_redirect $perm_redir_to
|
||||
f=();t=()
|
||||
for(i in $perm_redir_patterns) {
|
||||
if(~ $#f 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue