I have configured a site using WP on my Development Server and now I have moved it to another server with new URL. I have changed URL in database as well. But, my menus are pointing to the OLD URL and I am getting a 404 error.
How can I change them?
Try to use some wordpress plugins to migrate your website between servers.
Duplicator is one of them.
https://wordpress.org/plugins/duplicator/
You will have to do minimum effort if you use some tools.
Make SQL dump, overwrite old domain, load dump.
Also checks configuration files & themes.
You probably forget some links in your database. Check the following fields:
In wp_options
, options with the following option_name
:
siteurl
, home
In wp_posts
:
Check all the guid
values.
You need also to check that your .htaccess
is using the correct RewriteBase
.
If your menus are built from a special theme feature (not the default WP menu functionality), you may have some encoded string in wp_options
that reflect the menu settings. If so check on this procedure .
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.