You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by hy...@apache.org on 2020/11/03 11:12:47 UTC

[dubbo-website] branch asf-site updated: Update .htaccess

This is an automated email from the ASF dual-hosted git repository.

hyunkun pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new c3d1f1f  Update .htaccess
c3d1f1f is described below

commit c3d1f1f47a4aa3ef9ca30eeacbad1ab008315c45
Author: Huang YunKun <ht...@gmail.com>
AuthorDate: Tue Nov 3 19:12:38 2020 +0800

    Update .htaccess
---
 .htaccess | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/.htaccess b/.htaccess
index 9e12e11..bcf4354 100644
--- a/.htaccess
+++ b/.htaccess
@@ -17,4 +17,12 @@
 
 </IfModule>
 
+<IfModule mod_rewrite.c>
+  # Force Https
+  RewriteEngine On
+  RewriteCond %{HTTP_HOST} ^dubbo\.apache\.org [NC]
+  RewriteCond %{SERVER_PORT} 80
+  RewriteRule ^(.*)$ http://dubbo.apache.org/$1 [R,L]
+</IfModule>
+
 ErrorDocument 404 https://dubbo.apache.org/