From a9d617aad30e1699c93862fdc21525ae0643d700 Mon Sep 17 00:00:00 2001 From: Samantha McVey Date: Sat, 6 May 2017 10:01:38 -0700 Subject: [PATCH] Add updated .htaccess entries for rewriting --- html/.htaccess | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/html/.htaccess b/html/.htaccess index 6e3e739f1..74e1e2d9e 100644 --- a/html/.htaccess +++ b/html/.htaccess @@ -10,8 +10,18 @@ RewriteRule ^(.*)$ https://docs.perl6.org/$1 [R=permanent,L] # non-Windows operating systems. Since we used that earlier, rewrite in reverse # in case someone is using the long and awful URLs # RewriteRule ^type/(.*?)::(.*) /type/$1\$COLON\$COLON$2 [N] -RewriteRule ^type/(.*?)\$COLON\$COLON(.*) /type/$1::$2 [N] -RewriteRule ^type/(.*?)\$COLON(.*) /type/$1::$2 [N] +#RewriteRule ^type/(.*?)\$COLON\$COLON(.*) /type/$1::$2 [N] +#RewriteRule ^type/(.*?)\$COLON(.*) /type/$1::$2 [N] + +## Generated: +RewriteRule ^(/?type/.*/[^/]*?)([^/]*?\$COLON[^/]*)$ $1:$2 [N] +RewriteRule ^(/?type/.*/[^/]*?)\$COLON([^/\$COLON]*)$ $1:$2 [R=301] + +RewriteRule ^(/?routine/.*/[^/]*?)([^/]*?%5E[^/]*)$ $1\$CIRCUMFLEX_ACCENT$2 [N] +RewriteRule ^(/?routine/.*/[^/]*?)%5E([^/%5E]*)$ $1\$CIRCUMFLEX_ACCENT$2 [R=301] + +## + RewriteRule ^type/(.*?)\$REVERSE_SOLIDUS(.*) /type/$1%5c$2 [N] Redirect 301 /language/5to6 https://docs.perl6.org/language/5to6-nutshell