[Domain Mapping] Domain Mapping and htaccess

Hi guys i tried to find a solution for my multisite. All that i want is that all mapped domains are going to https://www.examplemappedomain.de at the moment i have the following problem: when i called the domain without https and only with www. nothing will happen only examplemappedomain.de calling in the browser will bring me an redirect to https://www.examplemappedomain.de

So what i need is a propper solution in the htaccess to get the result https://www.examplemappedomain.de for calling www. examplemappeddomain.de and examplemappedomain. and this for all the multisite domains:




at the moment i used this code:

RewriteCond %{HTTPS} off [OR]

RewriteCond %{HTTP_HOST} ^examplemappedomain1.de [NC]

RewriteRule ^(.*)$ https://www.examplemappedomain1.de/$1 [R=301,L]

RewriteCond %{HTTPS} off [OR]

RewriteCond %{HTTP_HOST} ^examplemappedomain2.de [NC]

RewriteRule ^(.*)$ https://www.examplemappedomain2.de/$1 [R=301,L]

RewriteCond %{HTTPS} off [OR]

RewriteCond %{HTTP_HOST} ^examplemappedomain3.de [NC]

RewriteRule ^(.*)$ https://www.examplemappedomain3..de/$1 [R=301,L]

RewriteEngine On

Rewritecond %{HTTP_HOST} !^www.maindomain.de [OR]

RewriteCond %{HTTP_HOST} !^www.

RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

i granted you access to the site, let me know if you need an ftp access i will send you the accocunt details.