I am trying to get a copy of a Wordpress site spun up in my local environment and the home page loads correctly, but when I attempt to load a link from the menu I get a 404.
So now when I look at the apache log I see this entry just after loading a page that results in a 404...
[php7:error] [pid 6427] [client ::1:53910] script '/home/my-user/development/index.php' not found or unable to stat, referer: http://localhost/my-wordpress-site/
I have the default .htaccess in place.
That might not do, if you have WP running in a folder, and not at root domain level.
Flush the permalink settings in the admin dashboard (simply save the settings once again), then WP should update the .htaccess itself – provided it is writable.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.