I have a dev site and a live site on the same sever but different code and different DB (ie, not a multisite setup). The only thing that relates the 2 is that dev.example.com points to the dev code and example.com points to the live code.

The problem is that when I generate a sitemap for the live site, the url for all links the xml use dev.example.com.

Does anyone know why this would happen? The base path is not set to dev.example in the settings.php or anything like that.

Appreciated, Adam