Found a solution.
Add this to your wp-config.php:
$_SERVER['HTTPS']='on';
$_SERVER['REQUEST_URI']='/my-domain.com'. $_SERVER['REQUEST_URI'];
I’m experiencing the same problem. Couldn’t find any info on the web, but I would think this must be a common problem. SSL is pretty much useless this way.
Frank: Have you made any progress? Did you mean modifying the core files by saying you had to add a prefix?