Ant*_*oCS 5 php redirect drupal
我正在一个drupal网站上工作,我检查了(svn)我的localhost.
现在的问题是,当我去:
一切正常,但是当我去:
我被重定向到
我运行了install.php脚本,一切都很棒.它会重新安装所有内容,但是当我转到主站点时,会发生重定向.
我删除了.htaccess文件,没有做任何事情.
我使用的是Windows 7 ultimate 64(也尝试过winxp pro 32)apache 2.2,php 5.2.13
任何人都知道要解决这个问题?
谢谢
acr*_*man 12
重定向是由Firefox无法与本地服务器建立良好连接,然后尝试"修复"该地址引起的.您可以按如下方式禁用Firefox中的行为:
然而,这不会解决您的潜在问题(本地服务器没有正确响应),它将摆脱真正烦人的行为.导致此故障的原因有多种,MatW建议的主机文件问题是常见原因.
在我的情况下,Drupal似乎在某些页面加载期间崩溃Apache,当您的浏览器将自己重定向到您需要刷新的页面时很难诊断/修复.
小智 0
从 drupalsites/default/settings.php 文件中:
/**
* Base URL (optional).
*
* If you are experiencing issues with different site domains,
* uncomment the Base URL statement below (remove the leading hash sign)
* and fill in the absolute URL to your Drupal installation.
*
* You might also want to force users to use a given domain.
* See the .htaccess file for more information.
*
* Examples:
* $base_url = 'http://www.example.com';
* $base_url = 'http://www.example.com:8888';
* $base_url = 'http://www.example.com/drupal';
* $base_url = 'https://www.example.com:8888/drupal';
*
* It is not allowed to have a trailing slash; Drupal will add it
* for you.
*/
# $base_url = 'http://www.example.com'; // NO trailing slash!
Run Code Online (Sandbox Code Playgroud)
尝试设置 $base_url = ' http://localhost/work/site ';