Reputation: 143
I am getting 404 error, after migrated wordpress site from one PC wamp to another PC wamp?
Upvotes: 0
Views: 96
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
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:
wp_options
table?wp-config.php
file with the new database credentials?Upvotes: 1
Reputation: 4870
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');
Step 1 : Goto wp-admin->setting->permalinks
Steps 2 : After save changes
Upvotes: 1