【问题标题】:Internal Error in Drupal 7 after posting from Windows / apache to Linux从 Windows / apache 发布到 Linux 后 Drupal 7 出现内部错误
【发布时间】:2011-09-23 13:36:44
【问题描述】:
我最近将我的 drupal 7 站点从在 apache 2 上运行的本地 Windows 系统上传到了 linux 服务器。本地系统有 php 5.3,服务器有 5.2。上传后,我无法访问任何子页面 - 它显示内部服务器错误。
我能够使用 ?q=user/admin、?q=node/1 等登录到管理和子页面
但是现在的 url 已经对 seo 友好了——比如 sitename.com/aboutme 等等。
我该如何克服这个问题?
谢谢。
【问题讨论】:
标签:
linux
drupal
window
porting
【解决方案1】:
在你的 .htaccess 文件中试试这个
# For example if your site is at http://example.com/drupal uncomment and
# modify the following line:
# RewriteBase /drupal
# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
# RewriteBase /