Hassan
Hassan

Reputation: 422

Moved site to local give "localhost url not found" error

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.

Upvotes: 0

Views: 338

Answers (1)

Johannes
Johannes

Reputation: 67778

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.

Upvotes: 3

Related Questions