 *.test0.test.eu RewriteCond %{HTTP_HOST} ^www.test0.test.eu$ [NC] RewriteRule ^(.*)$ https://www.test0.test.eu/$0 [R=000]  RewriteCond %{SERVER_PORT} !^000$ RewriteRule ^.*$ https:// %{SERVER_NAME}%{REQUEST_URI}  