Moved site to local give “localhost url not found” error

16
March 12, 2019, at 6:20 PM

I have a problem with my Wordpress website since I moved it to local. It does not work anymore.

Home page (localhost) is ok, but all other pages, for example "shop" (localhost/shop), gives me this error:

xampp : Object not found

The requested URL was not found on this server

The live site (aloocake.com and aloocake.com/shop) works

I use these code also:

define('FORCE_SSL', false);
define('FORCE_SSL_ADMIN', false);
define('WP_SITEURL', 'http://localhost/wp');
define( 'WP_HOME', 'http://localhost/wp' );

Any help is appreciated.

Answer 1

There is a very old bug in Wordpress that makes permalinks using the page names not working after a migration to another server although the links have been changed correctly in the database. Usually it helps if you go to the WP backend, select the "Permalinks" page, change the setting to anything else, save it, then change it back and save again. Often it's even enough just to open the Permalinks page and click "save changes" there.

READ ALSO
PHP preg_match_all(): Unknown modifier '>' [duplicate]

PHP preg_match_all(): Unknown modifier '>' [duplicate]

This question already has an answer here:

29
Laravel 5.5: 'Collator' not found with PHP 7.1.19 installed

Laravel 5.5: 'Collator' not found with PHP 7.1.19 installed

The question explains it allI get this exception when running code:

56
PHP Curl API - Cookies on remote server not working when using curl

PHP Curl API - Cookies on remote server not working when using curl

I'm trying to create an API and access it using PHP

20
eBay API - Use Preset Buttons to Filter Results in PHP

eBay API - Use Preset Buttons to Filter Results in PHP

I built a page on my site to show a list of items from ebay based on a keyword search from the finding api, using the finditemsAdvanced query

56