在同一服务器上迁移Drupal站点 [英] Migrating Drupal Site on same server

查看:78
本文介绍了在同一服务器上迁移Drupal站点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经完成了新的Drupal网站的开发,以替换旧的HTML静态网站.

I have finished developing my new Drupal site to replace an old HTML static site.

我选择将Drupal网站安装在此处的主域的Public HTML文件夹中;

I chose to install the Drupal site on Public HTML folder on the main domain here;

www.my-site.co.uk/development-site

我现在想删除旧的HTML静态网站并替换为该网站.

I would now like to remove the old HTML static site and replace with this site.

我是否只删除旧站点中的所有HTML文件(不包括/development-site 文件),然后将该文件的所有内容移动到公共HTML文件夹中?

Do I just delete all the HTML files from the old site, excluding /development-site file, then move all the contents of this file into the public HTML folder?

而且,由于数据库位于同一服务器上,我想我不需要更改settings.php文件上的任何内容?

Also, with the database being on the same server, I am guessing I would not need to change anything on the settings.php file?

推荐答案

如果您正确开发了站点,则可以将开发站点内容正确地移动到服务器的其他位置.

If you have developed your site correctly, you can move the development-site content to another location of your server without errors.

您应该将旧的HTML网站复制到其他位置.然后移动您的Drupal.

You should copy your old HTML site in other place. And then move your Drupal.

settings.php无需更改,前提是您的数据库位于同一文件夹中(本地主机配置);

The settings.php no needs changes, assuming that your database is in the same folder (localhost configuration);

唯一的问题是站点中某些静态URL链接到 development-site 文件夹的情况.如果您确定在Drupal中没有类似的链接.让我们移动您的网站.

The only problem you can have is the situation of some static url in your site linking to the development-site folder. If you are sure there are no links like that in your Drupal. Let's move your site.

这篇关于在同一服务器上迁移Drupal站点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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