Skip to content

Commit

Permalink
Hotfixes (#547)
Browse files Browse the repository at this point in the history
* removed redirect rules (should have been in #513)
* added nodalida to events page (closes #544)
  • Loading branch information
mjpost authored Oct 1, 2019
1 parent 19a337f commit 1aa8041
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
5 changes: 5 additions & 0 deletions data/yaml/venues_joint_map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -583,5 +583,10 @@ W19-51: ACL
W19-52: [ACL,WMT]
W19-53: [ACL,WMT]
W19-54: [ACL,WMT]
W19-61: NoDaLiDa
W19-62: NoDaLiDa
W19-63: NoDaLiDa
W19-64: NoDaLiDa
W19-65: NoDaLiDa
W19-66: MTSummit
W19-67: MTSummit
10 changes: 0 additions & 10 deletions hugo/static/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ RewriteRule ^(.*)$ https://%{SERVER_NAME}/anthology/$1 [R=301,L]
# that will also redirect X/Z19/P17-1069.pdf -> /anthology-files/pdf/P/P17/1-69.pdf
RewriteRule ^[A-Za-z]/[A-Za-z][0-9][0-9]/([A-Za-z])([0-9][0-9])\-([0-9][0-9][0-9][0-9])(.pdf)?$ https://www.aclweb.org/anthology/$1$2-$3 [R=301,L]

# Redirect URLs with an explicit ".pdf" to the bare canonical version
RewriteRule ^([A-Za-z])([0-9][0-9])\-([0-9][0-9][0-9][0-9]).pdf$ https://www.aclweb.org/anthology/$1$2-$3 [R=301,L]

# Redirect nested paper pages to the / version (e.g., papers/P/P19/P19-1001/ -> P19-1001/)
# This way there is only one page. Should maintain for backward compatibility for some time after August 2019.
RewriteRule ^papers/[A-Za-z]/[A-Za-z][0-9][0-9]/([A-Za-z])([0-9][0-9])\-([0-9][0-9][0-9][0-9])/?$ https://www.aclweb.org/anthology/$1$2-$3/ [R=301,L]
Expand All @@ -52,10 +49,6 @@ RewriteRule ^papers/[A-Za-z]/[A-Za-z][0-9][0-9]/([A-Za-z])([0-9][0-9])\-([0-9][0
# They are invisible to the outside.
#

## PDF redirection
# Canonical URL (a plain ACL ID with no file extension) -> landing page
RewriteRule ^([A-Za-z])([0-9][0-9])\-([0-9][0-9][0-9][0-9])\/?$ papers/$1/$1$2/$1$2-$3/ [L,NC]

# Volume URLs (e.g., P17-1 loads P/P17/P17-1.pdf)
RewriteRule ^([A-Za-z])([0-9][0-9])\-([0-9]{1,2})$ /anthology-files/pdf/$1/$1$2/$1$2-$3.pdf [L,NC]

Expand All @@ -68,8 +61,5 @@ RewriteRule ^([A-Za-z])([0-9][0-9])\-([0-9][0-9][0-9][0-9])([ve][0-9]+)$ /anthol
# Attachments (e.g., P17-1069.Poster.pdf loads /anthology-files/attachments/P/P17/P17-1069.Poster.pdf)
RewriteRule ^attachments/([A-Za-z])([0-9][0-9])\-([0-9][0-9][0-9][0-9])(\..*)?$ /anthology-files/attachments/$1/$1$2/$1$2-$3$4 [L,NC]

# Redirects for bib, MODS XML, Endnote (e.g., /P17-1069.bib loads papers/P/P17/P17-1069.bib)
RewriteRule ^([A-Za-z])([0-9][0-9])\-([0-9][0-9][0-9][0-9])\.([a-z]+)$ papers/$1/$1$2/$1$2-$3.$4 [L,NC]

# Author pages (e.g., people/arya-d-mccarthy loads people/a/arya-d-mccarthy)
RewriteRule ^people/([a-z])([\-a-z0-9]*)$ people/$1/$1$2/ [L,NC]

0 comments on commit 1aa8041

Please sign in to comment.