WordPress linked to incorrect domain for images
-
So currently I have a webhosting on godaddy called:
I purchased a new domain (newdomain.com) from another company, who won’t let me switch that domain to Godaddy for at least 60 days. So my best bet is to redirect the newdomain url to the current oldwebsite.com
Godaddy created a new PRIMARY domain called newdomain.com on their hosting, however this is not linked to anything at the moment.
For some reason, when newdomain.com was made the PRIMARY domain on GoDaddy, wordpress started giving problems.
Problem 1:
I was locked out of wordpress, so I went into wp-config.php and entered:
define(‘WP_HOME’,’https://www.oldwebsite.com’);
define(‘WP_SITEURL’,’https://www.oldwebsite.com’);
Problem 1 solved.Problem 2: Some of the pictures on my website are not loading. When I checked the url for the pictures, it points to:
newdomain/wp-content/uploads/2013/12/Logo3.pngHow do I get these images to point back to oldwebsite/wp-content/uploads/2013/12/Logo3.png??
Thank you guys. Your help is much appreciated!
Best,
Andy
- The topic ‘WordPress linked to incorrect domain for images’ is closed to new replies.