404 on all pages but Home after move from live server to localhost
-
I moved my live WP site to my local machine, and everything is working fine except that Home is the only page that shows up. Every other page on the site is “404 Not Found”.
The path to my local version of the site is C:\web\Apache\htdocs\jymusic, which of course translates in the browser to https://localhost/jymusic/
During the move, one of the steps was to run a query to change the live site URLs to local URLS. Here are the queries I used:
UPDATE wp_options SET option_value = replace(option_value, ‘https://jymusic.com’, ‘https://localhost/jymusic’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’;
UPDATE wp_posts SET post_content = replace(post_content, ‘https://jymusic.com’, ‘https://localhost/jymusic’);
UPDATE wp_posts SET guid = replace(guid, ‘https://jymusic.com’,’https://localhost/jymusic’);
UPDATE wp_postmeta SET meta_value = replace(meta_value,’https://jymusic.com’,’https://localhost/jymusic’);
UPDATE wp_links SET link_url = replace(link_url, ‘https://jymusic.com’, ‘https://localhost/jymusic’);I’ve been troubleshooting for hours, researching and trying stuff, even started all over from scratch at one point, but can’t figure out what’s wrong. Would appreciate some help if anyone can point me in the right direction.
Here’s my local dev environment:
Windows 10 Home x64 (v1703)
WP Plugins:
– Contact Form 7 v4.7
– The Events Calendar v4.4.5Server setup:
– MySQL 5.6
– Apache 2.4
– PHP 5.6No phpMyAdmin. I use command lines only.
- The topic ‘404 on all pages but Home after move from live server to localhost’ is closed to new replies.