Apparently, I solved using the follows I found on another stackoverflow question:
<!-- Ensure that all are on the same top domain and sub domain. -->
<unless header="HTTP_HOST" match="www.thetotalsite.it">
<redirect
url="^(.*)$"
to="http://www.thetotalsite.it$1"
processing="stop" />
</unless>
Note that if you have an outdated version of UrlRewriter.Net, it won't work. Download and compile the latest sources (2.0.0.9).