From 1aa8041e01d3ce5cbcf3c93357801e539d385bc4 Mon Sep 17 00:00:00 2001 From: Matt Post Date: Tue, 1 Oct 2019 09:37:16 -0400 Subject: [PATCH] Hotfixes (#547) * removed redirect rules (should have been in #513) * added nodalida to events page (closes #544) --- data/yaml/venues_joint_map.yaml | 5 +++++ hugo/static/.htaccess | 10 ---------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/data/yaml/venues_joint_map.yaml b/data/yaml/venues_joint_map.yaml index 0bc65e2543..f7090881d6 100644 --- a/data/yaml/venues_joint_map.yaml +++ b/data/yaml/venues_joint_map.yaml @@ -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 diff --git a/hugo/static/.htaccess b/hugo/static/.htaccess index 96639f3789..1b3bc84a2c 100644 --- a/hugo/static/.htaccess +++ b/hugo/static/.htaccess @@ -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] @@ -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] @@ -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]