If you link to an image on a different site it will display on your site
True, but https://www.provasconti.alexanderreif.com/wp-content/uploads/Pneumatici-Invernali-Pirelli.jpg (what I get from the source of the page https://www.scontionline.net/pneumatici-invernali-pirelli/ ) does NOT exist (click on it, in order to test for yourself)
If you turned off the test site, that image would be broken because it’s loading from the test site.
Use this tool to do a search and replace of your current live site.
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
eg, search for https://www.provasconti.alexanderreif.com
and replace with with https://www.scontionline.net
Before posting here I also did the following:
1) I exported ALL content through the WordPress export function in TOOLS -> EXPORT
2) opened the XML file with Notepad++ and replaced “www.proavasconti.alexanderreif.com” with “www.scontionline.net” in the whole document. I saved it than with a new name.
3) uploaded the modified file with the WordPress internal importer at TOOLS -> IMPORT
When asked if I want to import attachments, I set the flag on “Download and import file attachments”.
After hitting “SUBMIT”, I got a confirmation of a long list of images telling me that they already existed.
The final statement under that list is: “All done. Have fun!” ??
If I now perform the same test as in the beginning, that means going to the page https://www.scontionline.net/pneumatici-invernali-pirelli/ the image of the yellow car and the tire is on the same domain and it’s address is https://www.scontionline.net/wp-content/uploads/Pneumatici-Invernali-Pirelli.jpg BUT if I hit CTRL + U in order to see the source of the page I get that the address of the SAME image is https://www.provasconti.alexanderreif.com/wp-content/uploads/Pneumatici-Invernali-Pirelli.jpg
The only reason why I was able to spot this strange thing is that in the POST EDITOR in the VISUAL tab I got (and STILL GET EVEN AFTER exporting the database, replacing the wrong urls and re-importing them) an empty rectangle, instead of the image.
And when I switch to the TEXT tab I see:
<img class="alignleft size-full wp-image-329" title="Pneumatici Invernali Pirelli" src="https://www.provasconti.alexanderreif.com/wp-content/uploads/Pneumatici-Invernali-Pirelli.jpg" alt="Pneumatici Invernali Pirelli" width="300" />
That means again the https://www.provasconti.alexanderreif.com !!!!
What drives me mad is:
1) why does the old domain reappear after importing the database ?
2) why, if the source of the image points to the domain https://www.provasconti.alexanderreif.com (that DOESN’T exist anymore), get’s displayed correctly (and the only place where that image exists is on https://www.scontionline.net)
I’m frustrated and I’m going now to implement even your suggestion:
Use this tool to do a search and replace of your current live site.
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
I’ll report you back after I’ve done it.