RewriteEngine On | |
# This is a 301 (permanent) redirect from HTTP to HTTPS. | |
# The next rule applies conditionally: | |
# * the host is "beam.apache.org", | |
# * the host comparison is case insensitive (NC), | |
# * HTTPS is not used. | |
RewriteCond %{HTTP_HOST} ^beam\.apache\.org [NC] | |
RewriteCond %{HTTPS} !on | |
# Rewrite the URL as follows: | |
# * Redirect (R) permanently (301) to https://beam.apache.org/, | |
# * Stop processing more rules (L). | |
RewriteRule ^(.*)$ https://beam.apache.org/$1 [L,R=301] |