Yukarıdaki kodlar sizin istediğinizi yapmıyor. Yine www'yu ziyaret ediyor önce. .htaccess'e bu kodları eklemeniz daha mantıklı.

RewriteCond %{HTTPS} =on
RewriteRule ^(.*)$ - [env=ps:https]
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ - [env=ps:http]

RewriteCond %{QUERY_STRING} (^|&)m=1(&|$)
RewriteRule ^ - [CO=m:1:spielkorb.com]
RewriteCond %{QUERY_STRING} (^|&)m=0(&|$)
RewriteRule ^ - [CO=m:0:spielkorb.com]
RewriteCond %{QUERY_STRING} (^|&)m=0(&|$)
RewriteRule ^ - [S=1]

RewriteCond %{HTTP:x-wap-profile} !^$ [OR]
RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC,OR]
RewriteCond %{HTTP:Profile} !^$
RewriteCond %{HTTP_HOST} !^m\.
RewriteCond %{HTTP_COOKIE} !^.*m=0.*$ [NC]
RewriteRule ^ %{ENV:ps}://m.spielkorb.com%{REQUEST_URI} [R,L]

RewriteCond %{HTTP_USER_AGENT} "!(android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile)" [NC]
RewriteCond %{HTTP_HOST} ^m\.
RewriteCond %{HTTP_COOKIE} !^.*m=1.*$ [NC]
RewriteRule ^ %{ENV:ps}://www.spielkorb.com%{REQUEST_URI} [R,L]