File tree 1 file changed +6
-14
lines changed
1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change 3
3
# This file was generated by the publish command.
4
4
# https://github.com/creativecommons/cc-legal-tools-app
5
5
#
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
19
9
20
10
###############################################################################
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
22
14
23
15
RedirectMatch 301 "^/publicdomain/zero/1[.]0/legalcode[.]zh[@_-]tw(?:[.]html)?$" "/publicdomain/zero/1.0/legalcode.zh-hant"
24
16
RedirectMatch 301 "^/publicdomain/zero/1[.]0/legalcode[.]zh[@_-]cn(?:[.]html)?$" "/publicdomain/zero/1.0/legalcode.zh-hans"
You can’t perform that action at this time.
0 commit comments