Repository: beam-site Updated Branches: refs/heads/asf-site d9ade0584 -> 9a16fb475
Add .htaccess to automatically forward HTTP to HTTP Project: http://git-wip-us.apache.org/repos/asf/beam-site/repo Commit: http://git-wip-us.apache.org/repos/asf/beam-site/commit/c6d0390d Tree: http://git-wip-us.apache.org/repos/asf/beam-site/tree/c6d0390d Diff: http://git-wip-us.apache.org/repos/asf/beam-site/diff/c6d0390d Branch: refs/heads/asf-site Commit: c6d0390d05e472963665f6c717110266aca01896 Parents: d9ade05 Author: Davor Bonaci <[email protected]> Authored: Thu Dec 29 10:11:21 2016 -0800 Committer: Davor Bonaci <[email protected]> Committed: Thu Dec 29 11:28:58 2016 -0800 ---------------------------------------------------------------------- src/.htaccess | 15 +++++++++++++++ 1 file changed, 15 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/beam-site/blob/c6d0390d/src/.htaccess ---------------------------------------------------------------------- diff --git a/src/.htaccess b/src/.htaccess new file mode 100644 index 0000000..06fc74b --- /dev/null +++ b/src/.htaccess @@ -0,0 +1,15 @@ +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]
