Moving from server to personal pc
-
Hi, I am very new to wordpress so please excuse my newbness….
I am trying to duplicate an instance of wordpress that is live on my local personal machine.
I restored the database locally
I downloaded all wordpress files into my new directory.
I changed the wp_config.php db settingsbut found that my pathing is off. So I tried numerous things:
Tried setting
define(‘WP_SITEURL’, ‘https://’ . $_SERVER[‘SERVER_NAME’] . ‘/wordpress-instance’);
define(‘WP_HOME’, ‘https://’ . $_SERVER[‘HTTP_HOST’] . ‘/wordpress-instance’);I tried changing the wp_options ‘site_url’, ‘home’ to from https://siteurl.com to https://localhost/wordpress-instance
I queried the wp_options table and replaced all https://siteurl.com to https://localhost/wordpress-instance
Still… when I browse to home or any page all images that have relative pathing are broken/not showing up. (example: <img src=”/website-images/image.png”>).
Im out of answers. Any help on this would be most appreciated. Im sure its something small that I missed…
Thanks in advance!
ps. I read the “Moving WordPress” article, still no go.
Mike
- The topic ‘Moving from server to personal pc’ is closed to new replies.