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

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

问题描述

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

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天全站免登陆