Skip to content

Commit

Permalink
Merge pull request #454 from creativecommons/redirect-deeds-absent-langs
Browse files Browse the repository at this point in the history
  • Loading branch information
TimidRobot authored May 24, 2024
2 parents ab94d9c + 8c57cff commit 3bc446c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions legal_tools/management/commands/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,13 +556,10 @@ def distill_legal_tools(self):
"RewriteCond %{REQUEST_FILENAME}.html !-f",
"RewriteCond %{REQUEST_FILENAME} !-l",
"RewriteCond %{REQUEST_FILENAME}.html !-l",
f"RewriteRule licenses/([a-z+-]+)/{ver}/"
f"{jur}/deed[.].*$"
f"RewriteRule licenses/([a-z+-]+)/{ver}/{jur}/deed[.].*$"
f" /licenses/$1/{ver}/{jur}/deed.{default_lang} [R=301,L]",
]
# DISABLED until generated file has been moved to within inside
# directory stanza in Apache2 config
# DISABLED include_lines += step2_lines
include_lines += step2_lines
del step2_lines

# Step 3: Redirect absent deed translations for international/universal
Expand Down Expand Up @@ -592,9 +589,7 @@ def distill_legal_tools(self):
" /licenses/$1/$2/deed.en [R=301,L]",
"",
]
# DISABLED until generated file has been moved to within inside
# directory stanza in Apache2 config
# DISABLED include_lines += step3_lines
include_lines += step3_lines
del step3_lines

include_lines.append("# vim: ft=apache ts=4 sw=4 sts=4 sr noet")
Expand Down

0 comments on commit 3bc446c

Please sign in to comment.