admin管理员组文章数量:1391991
I copied working WP site to a new dir for a theme redesign, created a separate db, change all old site urls to the new address. Now when I use menu it goes to the old site location. Rewrite rules are the same. Whats wrong?
I copied working WP site to a new dir for a theme redesign, created a separate db, change all old site urls to the new address. Now when I use menu it goes to the old site location. Rewrite rules are the same. Whats wrong?
Share Improve this question asked Mar 4, 2020 at 19:06 tobtotobto 12 bronze badges 3- When you said you changed all old site URLs to the new address, how did you do that? Did you use an SQL query? If so that would explain the issue – Tom J Nowell ♦ Commented Mar 4, 2020 at 19:18
- No. I opened text editor and changed old site name oldsitename for a new dir oldsitename/1 Thx! – tobto Commented Mar 4, 2020 at 19:25
- Ooh, you have to change things in the database to change a sites URL – Tom J Nowell ♦ Commented Mar 4, 2020 at 19:57
1 Answer
Reset to default 0You need to use a Search and Replace plugin (I like "Better Search and Replace") to replace in the database all instances of the olddomain name with the new one. This will fix media links, and anything else that has the olddomain name.
You could do it manually with some SQL queries, and going into the menu area of the new site, but the plugin will be much faster. (Backup your database first, of course. But I've used the above plugin on several sites without problems. )
本文标签: Copied site has wrong menu URL behaviour
版权声明:本文标题:Copied site has wrong menu URL behaviour 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744696263a2620295.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论