Fix archive page redirect
/archive/page/* shouldn't redirect.
This commit is contained in:
parent
1ce83c3f86
commit
8abc2e1afd
|
@ -37,10 +37,19 @@
|
|||
}
|
||||
|
||||
@articles path_regexp ^/articles/(.*)$
|
||||
@old-dailies path_regexp ^/archive/(.*)$
|
||||
@talks path_regexp ^/talks/(.*)$
|
||||
@talks-archive path_regexp ^/talks/archive/(.*)$
|
||||
|
||||
# Exclude /daily/page/{number} from the /archive/* redirection
|
||||
@excludeArchivePages {
|
||||
path_regexp ^/archive/page/\d+$
|
||||
}
|
||||
|
||||
@old-dailies {
|
||||
path_regexp oldDailies ^/archive/(.*)$
|
||||
not path_regexp ^/archive/page/\d+$
|
||||
}
|
||||
|
||||
redir @articles /blog/{re.1} permanent
|
||||
redir @old-dailies /daily/{re.1} permanent
|
||||
redir @talks-archive /presentations/{re.1} permanent
|
||||
|
|
Loading…
Reference in a new issue