diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000000..13dbf075e5 --- /dev/null +++ b/.htaccess @@ -0,0 +1,10 @@ +# initialization code - put only once at the beginning of .htaccess +RewriteCond %{HTTPS} =on +RewriteRule ^(.*)$ - [env=proto:https] +RewriteCond %{HTTPS} !=on +RewriteRule ^(.*)$ - [env=proto:http] + +RewriteEngine On +RewriteBase / +RewriteCond %{HTTP_HOST} !rocketmq.apache.org$ [NC] +RewriteRule ^(.*)$ %{ENV:proto}://rocketmq.apache.org/$1 [L,R=301]