Windows 10 reached EOS (end of support) on October 14, 2025. For more information, see this article.

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

firefox redirects to localhost instead of live site

更多选项

I'm a developer and I usually build my sites local and then migrate to my live server. for example, locally the website is "xxxx-local" then when it is live the new site is "xxxx.mywebsite.com" (a subdomain)

now that the site is live on the subdomain, when i type in xxxx.mywebsite.com is immediately redirects to xxxx-local

it is not an auto completion problem, i am making sure it is fully typed in and then press enter or the go (arrow) button

it is not because the site doesn't exist, because (as usual) it works just fine in Chrome. No time wasted figuring it out.

Also, I have already tried about:config and changed "browser.fixup.alternate.enabled " to false.

Anyone know why it does this and how to fix it?

FWIW firefox 54.0 and windows 7, running wamp.

I'm a developer and I usually build my sites local and then migrate to my live server. for example, locally the website is "xxxx-local" then when it is live the new site is "xxxx.mywebsite.com" (a subdomain) now that the site is live on the subdomain, when i type in xxxx.mywebsite.com is immediately redirects to xxxx-local it is not an auto completion problem, i am making sure it is fully typed in and then press enter or the go (arrow) button it is not because the site doesn't exist, because (as usual) it works just fine in Chrome. No time wasted figuring it out. Also, I have already tried about:config and changed "browser.fixup.alternate.enabled " to false. Anyone know why it does this and how to fix it? FWIW firefox 54.0 and windows 7, running wamp.

所有回复 (7)

更多选项

It is possible you have left some code in place on the page uploaded that is still being found so redirects back.

The usual is to clear your Firefox cache as it is holding the file in there or please use Microsoft Disk Cleanup or the program of your choice to empty Temp Files.

If using .ASP or .PHP these need to be explored if answer is yes.

I suggest these as I have done the same thing making pages.


Please let us know if this solved your issue or if need further assistance.

由Shadow110于修改

更多选项

Did you check the HTTP response headers in the Network Monitor?

See also:

更多选项

Well thanks for replies, the problem was eventually solved, but unfortunately I did it non-scientifically by trying too many things at once. Probably just the cache. So I guess Pkshadow solved the problem.

I am pretty sure it was not flushing the DNS, but I mention that in case someone else has similiar problem.

Thanks you for links to network monitor and a http-headers, now I have more things to learn about.

What I don't understand is why the cache would do this if the url was completely different and I made a point to change the content of the page. What is the cache focusing on to think it was the same page. So I guess I need to learn more about cache. I remember a few years back having to empty cache all the time to see changes in style sheets, but lately this has not been a problem even with very minor changes to css.

Also, FWIW, this was a wordpress (php) site.

I want to leave this open for a bit in case anyone has comments, or else after a bit I will come back and mark it solved.

更多选项

mmm...have no idea why the sentence was formatted funny (as code?). I wish I could edit my replies.

更多选项

There should be a link to the right of each of your own replies to edit it.

The reason the forum treated that line as "preformatted" text is that it had at least one space at the beginning. It's based on an old "wiki" syntax.

更多选项

Thanks jscher I am obviously a newb here, totally missed the edit this post button. Searching the site for FAQ etc or a guide, trying to figure out the difference between "was this helpful" and "mark as solved" as I want to give people their credit for helping.

由Divvy于修改

更多选项

Divvy said

Searching the site for FAQ etc or a guide, trying to figure out the difference between "was this helpful" and "mark as solved" as I want to give people their credit for helping.

You can "Helpful" any post using a button below it; no need to use email notification links.

But you can only choose one "Solution."