如何更改WordPress安装的博客路径?
我在这里安装了我的 WordPress 博客网站,http://www.test.com.au/demo,现在我想将我的根路径更改为这个 http://www.test.com.au,但是当我将所有文件传输到此处时,我无法真正正确访问该站点。
我不知道执行此操作的实际方法是什么。
I have installed my WordPress blog site here, http://www.test.com.au/demo, now I want to change my root path to this http://www.test.com.au, but when I transfer all files to here, I can't really access the site correctly.
I don't know what is actual method to do this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您可能需要做的不仅仅是传输文件。您还需要在 wp_options 中更改一些数据库设置。执行 select * from wp_options 并查看哪些设置仍指向您的旧位置,然后您可以更改这些设置。
You may need to do more than just transfer files. You will need to change a few database settings as well in wp_options. Do a select * from wp_options and see which settings are still pointing to your old location, then you can change those.
请参阅此
http://codex.wordpress.org/Moving_WordPress
以下是移动网站的步骤。
Refer this
http://codex.wordpress.org/Moving_WordPress
Here are the steps to move your site.
我会关注上面@davidosomething 的列表。
将来我会尝试这个。
打开复制的index.php文件,并从最后一行删除“admin”:
require('./admin/wp-blog-header.php');
I would follow @davidosomething's list above.
In the future, I would try this.
Open up copied index.php file, and delete "admin" from last line:
require('./admin/wp-blog-header.php');