Skip to content

Commit 45b79d2

Browse files
authored
Remove redundant HTTP->HTTPS redirect in .htaccess (#38522)
The HTTP->HTTPS redirect is already handled by Apache TLP infrastructure, so the redirect rules in website/www/site/static/.htaccess are redundant. Fixes #37432
1 parent a7d2708 commit 45b79d2

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

website/www/site/static/.htaccess

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
11
RewriteEngine On
22

3-
# This is a 301 (permanent) redirect from HTTP to HTTPS.
4-
5-
# The next rule applies conditionally:
6-
# * the host is "beam.apache.org",
7-
# * the host comparison is case insensitive (NC),
8-
# * HTTPS is not used.
9-
RewriteCond %{HTTP_HOST} ^beam\.apache\.org [NC]
10-
RewriteCond %{HTTPS} !on
11-
12-
# Rewrite the URL as follows:
13-
# * Redirect (R) permanently (301) to https://beam.apache.org/,
14-
# * Stop processing more rules (L).
15-
RewriteRule ^(.*)$ https://beam.apache.org/$1 [L,R=301]
16-
173
# Javadocs / pydocs are available only on the published website, published from
184
# https://github.com/apache/beam-site/tree/release-docs
195
# They were previously hosted within this repository, and published at the URL

0 commit comments

Comments
 (0)