When you took the copy from the “old hosting website” and transfered it to your localhost, you did not change the settings for: WP_HOME and WP_SITEURL. Add these lines to your wp-config.php file:
define('WP_HOME','http://yourdomain.com');
define('WP_SITEURL','http://yourdomain.com');
Then you will also have to adjust any links to images etc, so that they are requested from localhost.
Good ways to fix these problems are to either:
– Use a plugin like DUPLICATOR to prepare your data and move your website.
– Configure your localhost website to use “VirtualHost” and then work on your local copy using the same name it uses when hosted, details here:
http://httpd.apache.org/docs/2.2/vhosts/name-based.html
Thread Starter
Urbahz
(@urbahz)
Hello again RossMitchell! 🙂 it worked!…kinda. I can now browse all the tabs and see all my content. Thank you! But i still have one problem. None of my images are shown, thats the only missing thing. i have tried to change the direction path through wp_post in php admin, but no luck. Do you know the problem?
– site note, when i press the home tab i get redirected back to my old hosting site.
Presumably you have copies of your images in your WordPress directories on your local computer.
Have you also added “www.YourWebName” to your hosts file and also set it in your apache VirtualHost block as “ServerAlias http://www.YourWebName” ?
If this does not help then could you provide:
contents of hosts file
contents of apache VirtualHost config block
The URL that your HOME button directs to
The URL that is not working for an image
Thread Starter
Urbahz
(@urbahz)
Hello again Ross! Thank you for the reply. I’m running this off WAMP and doing it locally, so i cant point you the website. but i’ve provided some pictures.
– http://imgur.com/a/ev0z9#J3VtWme
– Side note: old website had the name pmhwebdesign.herobo.com
old website had the name pmhwebdesign.herobo.com
This web address is still in you database as the address of many of your posts and almost certainly also your images.
When you do not provide the information I requested you waste both our time.
Suggest that you read and follow the instructions I gave you earlier here:
http://httpd.apache.org/docs/2.2/vhosts/name-based.html
OR you could use the DUPLICATOR plugin to create a new copy of your website from the old hosting.
I will not be able to answer your questions if you do not follow my instructions.