How to redirect all your domains to www? (also with the sitemaps generated)

Hello,

How to redirect all your domains to www?

Just add this code to the .htaccess

RewriteCond %{HTTP_HOST} !^www\..*
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} ^([^.]*)\.(com|nl)
RewriteRule ^.*$ http://www.%1.%2%{REQUEST_URI} [R=permanent,L]

You can add your domain extention to the list e.g.((com|nl|be|co\.uk|co\.cz|org)

So now is my question: why doesnt the sitemaps add the correct urls to the sitemap.xml? (wmpu dev seo plugin)

~ Luc

Luc