Reply To: We lost the images in the search

#14241

Ernest Marcinko
Keymaster

Hi Karsten,

From what I can see WordPress is returning the images with the wrong base URL, so instead of:

https://haushaltsfee.org/files/…..jpg

..it returns:

http://haushaltsblogs.de/files/…..jpg

If the site was recently moved from another domain, some data might still have the old url. To get around it, make sure to set these constants in the wp-config.php file (taken from WordPress.org tutirials):

define('WP_HOME','https://haushaltsfee.org');
define('WP_SITEURL','https://haushaltsfee.org');

If that does not work, then alternatively you can add this custom code to the functions.php file in your theme directory to replace the wrong image URLs:

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)