Skip to content

Commit 6fce965

Browse files
committed
Rewrite $REVERSE_SOLIDUS to %2F
Since on Unix we used to have $REVERSE_SOLIDUS but no longer do. Also get URL's with only one $COLON rewriting properly.
1 parent 61cb776 commit 6fce965

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

html/.htaccess

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ RewriteRule ^(.*)$ https://docs.perl6.org/$1 [R=permanent,L]
1111
# in case someone is using the long and awful URLs
1212
# RewriteRule ^type/(.*?)::(.*) /type/$1\$COLON\$COLON$2 [N]
1313
RewriteRule ^type/(.*?)\$COLON\$COLON(.*) /type/$1::$2 [N]
14+
RewriteRule ^type/(.*?)\$COLON(.*) /type/$1::$2 [N]
15+
RewriteRule ^type/(.*?)\$REVERSE_SOLIDUS(.*) /type/$1%5c$2 [N]
1416

1517
Redirect 301 /language/5to6 https://docs.perl6.org/language/5to6-nutshell
1618
Redirect 301 /examples http://examples.perl6.org/

0 commit comments

Comments
 (0)