<ruleset name="WhatCD">
  <target host="what.cd" />
  <target host="www.what.cd" />
  <target host="m.what.cd" />
  <target host="ssl.what.cd" />

<rule from="^http://(www\.)?what\.cd/" to="https://what.cd/"/>
<rule from="^http://(m|ssl)\.what\.cd/" to="https://$1.what.cd/"/>

</ruleset>