Fix archive page redirect

/archive/page/* shouldn't redirect.
This commit is contained in:
Oliver Davies 2025-01-01 20:55:56 +00:00
parent 1ce83c3f86
commit 8abc2e1afd

View file

@ -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