Drupal localhost redirecting to www.localhost.com

后端 未结 4 743
我在风中等你
我在风中等你 2021-01-06 01:57

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

4条回答
  •  轮回少年
    2021-01-06 02:27

    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. Type about:config in the address bar and hit return.
    2. Find browser.fixup.alternate.enabled.
    3. Double click the “true” value. The line will become bold, and the value will change to “false” from here

    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.

    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.

提交回复
热议问题