yip, that bit of code of mine does exactly that

RewriteRule ^www.mydomain.com(.*)$ http://www.mydomain.com$1 [L,R=301]
that would forward mydomain.com/www.mydomain.com/products to mydomain.com/products it would effectively remove the extra domain thats there in error from any url that has it in it
so if someone tried to go to
http://www.mydomain.com/www.mydomain.com/productsthey would be forwarded to
http://www.mydomain.com/productsit would work on any url that had the duplication in it and effectively remove the duplication
basically that bit of code as I said is designed to redirect people from one subdirectory to the root or to another subdirectory but it will work fine to sort the problem of the duplicate domain name in the url
http://www.mydomain.com/www.mydomain.com/ a browser will try to find a subdirectory called
www.mydomain.com using that link above, even though its just an error and the domain name has been produced twice, using the code that is designed to redirect people from one subdirectory to another will do the job you want and basically remove the duplicated domain name in the url
honestly John, it will sort the problem your talking about
