【问题标题】:Why Drupal 8 page messed up when I migrate from Bluehost to a local server?当我从 Bluehost 迁移到本地服务器时,为什么 Drupal 8 页面混乱?
【发布时间】:2018-11-05 02:48:50
【问题描述】:

我有一个 Bluehost 服务器帐户,并且上面有一些 Drupal 8 站点。我面临的问题是,当我尝试从 Bluehost 迁移到本地服务器时,页面可以正常工作,但很乱,包括样式、图像、菜单项等。后端管理菜单也很乱。

这很奇怪,因为如果我做相反的过程,即从本地服务器到 Bluehost,站点确实可以完美运行。

有人知道发生了什么吗?

谢谢!

【问题讨论】:

  • 这里很难回答。因为我们不知道您的服务器是如何配置的。我的第一个猜测是.htaccess config。可能是RewriteBase
  • 是的,就是这样。谢谢!
  • 您是否清除了本地所有站点缓存。
  • 从浏览器调试器、网络选项卡中检查哪些文件没有很好地加载。也许网络服务器没有访问权限来为它们提供服务,也许文件丢失了......

标签: drupal drupal-8


【解决方案1】:

从这里很难回答。因为我们不知道您的服务器是如何配置的。我的第一个猜测是.htaccess config。可能是RewriteBase

改变

# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
# RewriteBase /

# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
RewriteBase /

反之亦然。

【讨论】:

    猜你喜欢
    • 2011-12-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多