<legend id='Fo29M'><style id='Fo29M'><dir id='Fo29M'><q id='Fo29M'></q></dir></style></legend>

    1. <i id='Fo29M'><tr id='Fo29M'><dt id='Fo29M'><q id='Fo29M'><span id='Fo29M'><b id='Fo29M'><form id='Fo29M'><ins id='Fo29M'></ins><ul id='Fo29M'></ul><sub id='Fo29M'></sub></form><legend id='Fo29M'></legend><bdo id='Fo29M'><pre id='Fo29M'><center id='Fo29M'></center></pre></bdo></b><th id='Fo29M'></th></span></q></dt></tr></i><div id='Fo29M'><tfoot id='Fo29M'></tfoot><dl id='Fo29M'><fieldset id='Fo29M'></fieldset></dl></div>

    2. <small id='Fo29M'></small><noframes id='Fo29M'>

      <tfoot id='Fo29M'></tfoot>

          <bdo id='Fo29M'></bdo><ul id='Fo29M'></ul>

        Drupal localhost 重定向到 www.localhost.com

        Drupal localhost redirecting to www.localhost.com(Drupal localhost 重定向到 www.localhost.com)
          <bdo id='VZvH7'></bdo><ul id='VZvH7'></ul>

          <small id='VZvH7'></small><noframes id='VZvH7'>

        • <i id='VZvH7'><tr id='VZvH7'><dt id='VZvH7'><q id='VZvH7'><span id='VZvH7'><b id='VZvH7'><form id='VZvH7'><ins id='VZvH7'></ins><ul id='VZvH7'></ul><sub id='VZvH7'></sub></form><legend id='VZvH7'></legend><bdo id='VZvH7'><pre id='VZvH7'><center id='VZvH7'></center></pre></bdo></b><th id='VZvH7'></th></span></q></dt></tr></i><div id='VZvH7'><tfoot id='VZvH7'></tfoot><dl id='VZvH7'><fieldset id='VZvH7'></fieldset></dl></div>

                  <tbody id='VZvH7'></tbody>
                <tfoot id='VZvH7'></tfoot>
                <legend id='VZvH7'><style id='VZvH7'><dir id='VZvH7'><q id='VZvH7'></q></dir></style></legend>

                  本文介绍了Drupal localhost 重定向到 www.localhost.com的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在一个 Drupal 站点上工作,我将其检出 (svn) 到我的本地主机.

                  I am working on a drupal site which I checked out (svn) to my localhost.

                  现在的问题是,当我去:

                  Now the problem is that when I go to:

                  http://www.site.com

                  一切正常,但是当我去:

                  it all works fine, but when I go to:

                  http://localhost/work/site

                  我被重定向到

                  http://www.localhost.com/work/site

                  我已经运行了 install.php 脚本并且一切正常.它会重新安装所有内容,但是当我转到主站点时会发生重定向.

                  I have ran the install.php script and all works great. It reinstalls everything but when I go to the main site the redirect occurs.

                  我删除了 .htaccess 文件,什么也没做.

                  I removed the .htaccess file, didn't do anything.

                  我使用的是 windows 7 Ultimate 64(也在 winxp pro 32 上试过)apache 2.2、php 5.2.13

                  I am using windows 7 ultimate 64 (also tried on winxp pro 32) apache 2.2, php 5.2.13

                  有人知道解决这个问题吗?

                  Anyone know anyway to fix this?

                  谢谢

                  推荐答案

                  重定向是由于 Firefox 无法与本地服务器建立良好连接,然后尝试修复"地址造成的.您可以按如下方式禁用 Firefox 中的行为:

                  The redirect is caused by Firefox not being able to get a good connection with the local server and then trying to "fix" the address. You can disable the behavior in Firefox as follows:

                  1. 在地址栏中输入 about:config然后按回车键.
                  2. 找到 browser.fixup.alternate.enabled.
                  3. 双击true"值.该行将变为粗体,并且值将更改为false"从这里

                  然而,这并不能解决您的潜在问题(本地服务器没有正确响应),它只会摆脱真正令人讨厌的行为.导致此失败的可能原因有多种,MatW 建议的主机文件问题是一个常见原因.

                  However that will not solve your underlying problem (local server isn't responding right), it will just get rid of really annoying behavior. There are several possible causes of this failure, the host file problem MatW suggested is a common cause.

                  在我的情况下,Drupal 似乎在某些页面加载期间使 Apache 崩溃,当您的浏览器不断将自身重定向到远离您需要刷新的页面时,这很难诊断/修复.

                  In my case Drupal seems to be crashing Apache during certain page loads, which is hard to diagnose/fix when your browser keeps redirecting itself away from the page you need to refresh.

                  这篇关于Drupal localhost 重定向到 www.localhost.com的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How do I pass parameters into a PHP script through a webpage?(如何通过网页将参数传递给 PHP 脚本?)
                  PHP - include a php file and also send query parameters(PHP - 包含一个 php 文件并发送查询参数)
                  Where can I read about conditionals done with quot;?quot; and quot;:quot; (colon)?(我在哪里可以阅读有关使用“?完成的条件的信息?和“:(冒号)?)
                  Accessing arrays whitout quoting the key(在不引用键的情况下访问数组)
                  What is the name for the quot;lt;lt;lt;quot; operator?(“lt;lt;lt;的名字是什么?操作员?)
                  default as first option in switch statement?(默认为 switch 语句中的第一个选项?)

                • <legend id='USIDg'><style id='USIDg'><dir id='USIDg'><q id='USIDg'></q></dir></style></legend>

                        <tbody id='USIDg'></tbody>
                      <i id='USIDg'><tr id='USIDg'><dt id='USIDg'><q id='USIDg'><span id='USIDg'><b id='USIDg'><form id='USIDg'><ins id='USIDg'></ins><ul id='USIDg'></ul><sub id='USIDg'></sub></form><legend id='USIDg'></legend><bdo id='USIDg'><pre id='USIDg'><center id='USIDg'></center></pre></bdo></b><th id='USIDg'></th></span></q></dt></tr></i><div id='USIDg'><tfoot id='USIDg'></tfoot><dl id='USIDg'><fieldset id='USIDg'></fieldset></dl></div>
                      • <bdo id='USIDg'></bdo><ul id='USIDg'></ul>

                        <small id='USIDg'></small><noframes id='USIDg'>

                        <tfoot id='USIDg'></tfoot>