From b68ac9983c40d2b98a37cd465e0faac8a34e434d Mon Sep 17 00:00:00 2001 From: yukon Date: Mon, 9 Oct 2017 16:08:47 +0800 Subject: [PATCH] Redirect old domain to TLP domain --- .htaccess | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .htaccess 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]