0

I have a website that is live and a version that I am working on locally using XAMPP. For some reason every time I try to load:

http://localhost/websitename

or

http://127.0.0.1/websitename

it goes to the internet version. This has only started happening. All services are started. XAMPP is working for all other sites that I am working on locally.

4

3 回答 3

1

这可能有很多原因。

您的 Windows 主机文件有什么重定向规则(C:/Windows/system32/drivers/etc/host)我假设您使用 Windows,因为您说“xampp”,如果我错了,请纠正我)

检查标头();在您的网站 php 脚本中重定向。

您是否有一个 v-host 条目将您重定向到 apache 的 v-host 配置中的另一个 url?

于 2013-07-26T11:24:53.420 回答
1

检查您的网站设置,因为我相信您将网站中的网址设置为实时版本。

于 2013-07-26T11:23:18.473 回答
0

检查您是否有任何硬编码的网址?或重定向?在重定向到实时版本的项目中。

于 2013-07-26T12:06:56.323 回答