Skip to content

Commit 4851be4

Browse files
committed
remove lowercase redirect and update comments
1 parent caf59bf commit 4851be4

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

config/language-redirects

+6-14
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,14 @@
33
# This file was generated by the publish command.
44
# https://github.com/creativecommons/cc-legal-tools-app
55
#
6-
# It should be included from within an Apache2 httpd site config
7-
#
8-
# https://httpd.apache.org/docs/2.4/mod/mod_alias.html
9-
# https://httpd.apache.org/docs/2.4/mod/mod_rewrite.html
10-
11-
###############################################################################
12-
# Step 1: Redirect mixed/uppercase to lowercase
13-
#
14-
# Must be set within virtual host context:
15-
RewriteMap lowercase int:tolower
16-
RewriteCond %{REQUEST_URI} ^/(licenses|publicdomain)
17-
RewriteCond $1 [A-Z]
18-
RewriteRule ^/?(.*)$ /${lowercase:$1} [R=301,L]
6+
# See related Apache2 httpd documentation:
7+
# - https://httpd.apache.org/docs/2.4/mod/mod_alias.html
8+
# - https://httpd.apache.org/docs/2.4/mod/mod_rewrite.html
199

2010
###############################################################################
21-
# Step 2: Redirect alternate language codes to supported Django language codes
11+
# Step 1: Langauge redirects
12+
# - Redirect alternate language codes to supported Django language codes
13+
# - Redirect legacy bug URLs to valid URLs
2214

2315
RedirectMatch 301 "^/publicdomain/zero/1[.]0/legalcode[.]zh[@_-]tw(?:[.]html)?$" "/publicdomain/zero/1.0/legalcode.zh-hant"
2416
RedirectMatch 301 "^/publicdomain/zero/1[.]0/legalcode[.]zh[@_-]cn(?:[.]html)?$" "/publicdomain/zero/1.0/legalcode.zh-hans"

0 commit comments

Comments
 (0)