且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在同一服务器上迁移Drupal站点;

更新时间:2023-11-22 17:23:34

如果您正确地开发了您的网站,您可以将开发网站内容移动到服务器的另一个位置,而不会发生错误。 p>

你应该复制你的旧H TML网站在其他地方。然后移动您的Drupal。



settings.php 不需要更改,假设您的数据库是相同的文件夹(localhost配置);



您可以使用的唯一问题是链接到开发站点的站点中的一些静态网址的情况夹。如果您确定在Drupal中没有这样的链接。让我们移动你的网站。



问候。


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

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

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

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

This might be a silly question, but 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?

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

Thanks

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

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

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

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.

Regards.