更改WordPress安装目录的文件夹名称 [英] Change the folder name for the directory WordPress is installed in

查看:338
本文介绍了更改WordPress安装目录的文件夹名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚安装WordPress在我的网站(http://www.example.com/wordpress/)子文件夹,我想将文件夹名称从wordpress更改为博客。我已经完成了整个安装过程,但还没有进行任何自定义。

I just installed WordPress in a subfolder on my site (http://www.example.com/wordpress/) and I want to change the folder name from "wordpress" to "blog". I've already gone through the entire installation process, but have not made any customizations at all yet.

我尝试只是重命名服务器上的文件夹,博客页面确实加载,但有些内容丢失(主要的默认头像,最引人注目的),所以我假设有其他文件也需要知道目录名称。

I tried just renaming the folder on the server, and the blog page does load, but some of the content was missing (the main, default header image, most notably), so I'm assuming there are other files that need to know the directory name as well.

如果这样做甚至没有完全重新安装,那么如何更改新的WordPress安装的文件夹名称?

If this is even feasible/possible without a complete reinstall, how do I change the folder name of a new WordPress installation?

推荐答案

我很确定你必须在数据库中更改它,然后再更改文件夹名称。尝试在您的wp-admin区域中转到 settings-> general ,这将是其中的前几个输入字段之一。

I'm pretty sure you have to also change it in the database before you go changing the folder name. Try going to settings->general in your wp-admin area and it'll be one of the first few input fields there.

所以,更改这两个字段,保存(页面可能不会回来),然后更改文件夹名称。

So, change those two fields, save (the page might not come back however), then change the folder name.

这篇关于更改WordPress安装目录的文件夹名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆