Navigation Menu

Skip to content

Commit

Permalink
Add updated .htaccess entries for rewriting
Browse files Browse the repository at this point in the history
  • Loading branch information
samcv committed May 6, 2017
1 parent 3a264bc commit a9d617a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions html/.htaccess
Expand Up @@ -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
Expand Down

0 comments on commit a9d617a

Please sign in to comment.