将 Drupal 7 站点移至其他服务器,无法登录 [英] Moved Drupal 7 site to a different server, can't log in
问题描述
我最近将我的 Drupal 7 站点移到了一个新的托管服务器,但我卡在了登录页面上.我一尝试登录,就会被引导回同一页面,但 URL 从 /user
更改为 /user/1
,这让我相信我实际上已登录,但我没有被转发到正确的页面.
我尝试清理缓存,清空数据库中的缓存表,但没有任何帮助.
有什么想法吗?
为了让事情更清楚一点,我已经将特定的服务器用于各种其他 Drupal 7 站点,所以我知道服务器配置在这里没有问题.
我怀疑您在 /sites/default/settings.php
中的 $cookie_domain
不正确.>
尝试使其与您的新域匹配并确保有一个前导点 .
$cookie_domain = '.mydomain.co.uk';
I recently moved my Drupal 7 site to a new hosting server and I'm stuck at the login page. As soon as I try and log in, I get directed back to the same page, but the URL changes from /user
to /user/1
, which leads me to believe that I am actually logged in, but I'm not being forwarded to the correct page.
I tried cleaning my cache, emptying the cache tables in the DB but nothing helped.
Any ideas?
EDIT: To make things a bit more clear, I've used the specific server for various other Drupal 7 sites, so I know for a fact that the server configuration is not at fault here.
I suspect your $cookie_domain
in /sites/default/settings.php
is incorrect.
Try making it match your new domain and ensure there's a leading dot .
$cookie_domain = '.mydomain.co.uk';
这篇关于将 Drupal 7 站点移至其他服务器,无法登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!