Skip to content

Commit 57ad47e

Browse files
committed
Updated htaccess to redirect old archive URLs
1 parent 353508d commit 57ad47e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.htaccess

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
11
Redirect 301 /current.html /index.html
22
Redirect 301 /2009-1/ /archive/2009-1/
3+
4+
# Redirect some old pages
5+
Redirect 301 /board.html /editors.html
6+
Redirect 301 /reviewer.html /index.html#reviewers
7+
Redirect 301 /reviews-etc.html /index.html
8+
9+
# Redirect archive issues to issues folders
10+
RedirectMatch 301 ^/archive/([0-9]{4}-[0-9]+)/?$ /issues/$1/
11+
12+
# Redirect individual articles and files from archive to articles folder
13+
RedirectMatch 301 ^/archive/[0-9]{4}/(RJ-[0-9]{4}-[0-9]{3}.*)$ /articles/$1
14+
15+
# Catch-all: redirect any remaining archive URLs to index.html
16+
RedirectMatch 301 ^/archive/.*$ /index.html

0 commit comments

Comments
 (0)