Hi
I had a similar problem
WP site at www.domain.com/ and moodle site moodle.domain.com/ at /moodle direcory
Moodle admin was redirected to moodle.domain.com/my/
I thought the error was in the .htaccess file of my wordpress site but all I had to do was
Log into your Wordpress Admin and then goto Settings->General and change your Wordpress URL to www.domain.com/