Regenerate website
Project: http://git-wip-us.apache.org/repos/asf/beam-site/repo Commit: http://git-wip-us.apache.org/repos/asf/beam-site/commit/e1eb3fa8 Tree: http://git-wip-us.apache.org/repos/asf/beam-site/tree/e1eb3fa8 Diff: http://git-wip-us.apache.org/repos/asf/beam-site/diff/e1eb3fa8 Branch: refs/heads/asf-site Commit: e1eb3fa8cae561d8c1416e540bb7d82c9f478270 Parents: dd81235 Author: Davor Bonaci <[email protected]> Authored: Tue Mar 14 16:43:42 2017 -0700 Committer: Davor Bonaci <[email protected]> Committed: Tue Mar 14 16:43:42 2017 -0700 ---------------------------------------------------------------------- content/.htaccess | 15 +++++++++++++++ 1 file changed, 15 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/beam-site/blob/e1eb3fa8/content/.htaccess ---------------------------------------------------------------------- diff --git a/content/.htaccess b/content/.htaccess new file mode 100644 index 0000000..06fc74b --- /dev/null +++ b/content/.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]
