Skip to content

Commit

Permalink
Try to fix /language/ redirect
Browse files Browse the repository at this point in the history
the previous attempt redirect /language/ to /language.html/.
This if for issue #1461
  • Loading branch information
moritz committed Sep 2, 2017
1 parent 1e20a10 commit 8fc1c69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions html/.htaccess
Expand Up @@ -6,6 +6,8 @@ RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=permanent,L]
RewriteCond %{HTTP_HOST} ^doc.perl6.org [NC]
RewriteRule ^(.*)$ https://docs.perl6.org/$1 [R=permanent,L]

RewriteRule ^language/?$ https://docs.perl6.org/language.html [R,L]

# We no longer need this, as we swapped the generator to not use the $COLONs on
# non-Windows operating systems. Since we used that earlier, rewrite in reverse
# in case someone is using the long and awful URLs
Expand All @@ -24,8 +26,6 @@ RewriteRule ^(/?routine/.*/[^/]*?)%5E([^/%5E]*)$ $1\$CIRCUMFLEX_ACCE

RewriteRule ^type/(.*?)\$REVERSE_SOLIDUS(.*) /type/$1%5c$2 [N]

Redirect 301 /language https://docs.perl6.org/language.html
Redirect 301 /language/ https://docs.perl6.org/language.html
Redirect 301 /language/5to6 https://docs.perl6.org/language/5to6-nutshell
Redirect 301 /examples http://examples.perl6.org/
Redirect 301 /examples.html http://examples.perl6.org/
Expand Down

0 comments on commit 8fc1c69

Please sign in to comment.