GunvantParmar
GunvantParmar

Reputation: 143

I'm getting a 404 error when migrating wordpress site from one PC wamp to another PC wamp?

I am getting 404 error, after migrated wordpress site from one PC wamp to another PC wamp?

Upvotes: 0

Views: 96

Answers (3)

Kinna T
Kinna T

Reputation: 804

Try going to Settings > Permalinks and changing the permalink structure to Plain. If the pages work after that, you can change the permalink structure back to whatever you wish.

I've had it before where just re-saving the same permalink setting doesn't resolve the 404's, but changing it to Plain does.

Upvotes: 0

Kris
Kris

Reputation: 121

This could be that your WordPress site on your new local environment need some changes, and there are some steps to follow: Moving WordPress

2 obvious changes:

  • Have you updated your wp_options table?
  • Have you updated your wp-config.php file with the new database credentials?

Upvotes: 1

Purvik Dhorajiya
Purvik Dhorajiya

Reputation: 4870

Edit wp-config.php

Add these two lines to your wp-config.php, where "example.com" is the correct location of your site.

define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');

Update permalink

Step 1 : Goto wp-admin->setting->permalinks

Steps 2 : After save changes

enter image description here

Upvotes: 1

Related Questions