Copy site to another domain - XML SiteMap wrong and Theme Settings not the same I copied my productive site from www.mydomain.com to a testsite www.mytestsite.com on the same server. I did it this way:
On productive server:


Set productive site to offline
Disabled Clean URL
Emptied Cache
created backup with the "backup and migrate" tool. All tables are backuped exept all cache-table and watchdog
Copy all files


On target test server:


Create new empty DB
Import SQL script via MySQLAdmin from provider
Copy all files
change settings.php
Login as Admin, set online, enable clean url, empty cache


Now I should have an identical site. But I have two differences (maybe more, which I cannot see):


XML Sitemap: Takes still the old domain name ("www.mydomain.com"). I can delete it and rebuild, no change. Why? This means that somewhere in a file the domain name must be written
The colors of hyperlinks are blue instead green as in the original site. When I go to "Theme settings" and simply press "save", then all is ok. Also here: Why is there wrong information about theme settings? Is this not saved in the DB?


Any help appreciated, thanks
Go to admin/config/search/xmlsitemap/settings and set the correct domain. If that does not work look at your variable table in database and make sure xmlsitemap_base_url is correct. 
Make sure your folder permissions are correct. If you have caching enabled and some themes need to write temp files inside sites/default/files so make sure permissions are correct and that Drupal can write there. 


If that does not work can you inspect where the styles are coming from using Firebug and also post what theme you are using and I can update my answer.