drupal 7 站点从 beta 迁移到根目录(子文件夹)
我在 drupal 7 中有以下网站 测试站点,现在我想将该站点移动到根文件夹。我的意思是从 beta 到公共 html 文件夹。请指导!
I have following site in drupal 7
Test Site and now I want to move the site to root folder. I mean from beta to public html folder. Please guide!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
说实话,您应该能够将文件从
beta
移到根目录中,Drupal 中几乎所有路径都是动态的。唯一需要注意的几点是:如果您使用指向 beta 子文件夹的
$base_url
设置网站,则需要编辑sites/default/files/settings .php
并对更改进行注释(查看该文件,您就会知道是否/为什么需要执行此操作)。如果您的内容中嵌入的图像/文件具有指向“/beta/some-file”的静态链接,则需要手动更改这些内容。
You should just be able to move the files out of
beta
into the root to be honest, pretty much all paths in Drupal are dynamic. The only couple of caveats are:If you've set the site up with a
$base_url
pointing to the beta subfolder you'll need to editsites/default/files/settings.php
and comment that change out (have a look at the file and you'll know if/why you need to do this).If you have images/files embedded in content that have static links to '/beta/some-file' those will need to be changed manually.
转到配置>站点信息(admin/config/system/site-information),然后将默认首页:更改为测试版。
Go to Configuration > Site information, (admin/config/system/site-information) and then change default front page: to beta.