我有一个在http://example.com上运行的wordpress网站,我把它移到子域http://dev.example.com
在搜索堆栈溢出的有用信息后,主页http://dev.example.com上的所有内容都运行良好(路径到徽标,页的路径更改正确,菜单url changed...etc)
我遇到的问题是,像http://dev.example.com/my-page-title这样的页面无法工作(“请求的URL /my-page-title/在此服务器上找不到”)!
什么可能是遗漏的步骤,使我的所有页面正确显示?
这是我已经做过的事的简历:
wp-config.php
中添加了这2行
define('WP_HOME','http://dev.example.com'); define('WP_SITEURL','http://dev.example.com');
- [https://wordpress.org/plugins/velvet-blues-update-urls](https://wordpress.org/plugins/velvet-blues-update-urls)
- [https://wordpress.org/plugins/better-search-replace](https://wordpress.org/plugins/better-search-replace)
发布于 2017-02-08 11:19:06
试试这个解决方案https://github.com/wp-sync-db/wp-sync-db
一个WordPress插件,允许您在WordPress安装之间推送、拉动和同步数据库表。
直接链接到zip插件:https://github.com/afragen/github-updater/releases
https://stackoverflow.com/questions/42117114
复制