为什么“?from=@”被附加到我的 url?
Why is "?from=@" being appended to my url?
我的网站 joshvickerson.com 在导航到主页时一直在其 url 的末尾添加参数“?from=@”。奇怪的是,如果我删除它并在地址栏中按回车键,页面将在没有它的情况下重新加载。
我的网站曾经是一个简单的 PHP 网站,但我只是将其更改为 angular 应用程序。这在我使用 PHP 和现在使用 Angular 时都会发生。它似乎只发生在 Chrome。站点文件夹中不再有任何 PHP 个文件。
可能是什么原因造成的,我该如何阻止它发生?
编辑:
它仍然发生在一个非常基本的 index.html:
<!DOCTYPE html>
<html>
<body>
HELLO
</body>
</html>
站点目录中没有 PHP 脚本,我在该站点的任何目录中也没有 .htaccess 文件。虚拟主机如下所示:
<VirtualHost *:80>
# Admin email, Server Name (domain name), and any aliases
ServerAdmin josh@joshvickerson.com
ServerName joshvickerson.com
ServerAlias www.joshvickerson.com
# Index file and Document Root (where the public files are located)
DirectoryIndex index.html index.php
DocumentRoot /path/to/site
<Directory /path/to/site/>
Require all granted
</Directory>
# Log file locations
LogLevel warn
ErrorLog /path/to/site/log/error.log
CustomLog /path/to/site/log/access.log combined
</VirtualHost>
它看起来是基于 nginx 重定向的。
如果您的站点是从 www.joshvickerson.com
访问的,则不会重定向,但是,如果是从 joshvickerson.com
访问的,“?from=@”将附加到 [= 的末尾29=].
通过检查网络请求,您可以看到 joshvickerson.com
returns 一个 302 Moved Temporarily
状态代码。这导致它被重定向到 www.joshvickerson.com?from=@
编辑:看起来你是 运行 Apache,即使在响应 Header 中,它将 nginx/1.0.15
列为服务器。
原来我的注册商以某种方式修改了 DNS 记录。包含参数字符串的域有 URL 重定向记录。
不知道那是怎么回事,但这已经解决了。不知道为什么我没有早点想到它。
我的网站 joshvickerson.com 在导航到主页时一直在其 url 的末尾添加参数“?from=@”。奇怪的是,如果我删除它并在地址栏中按回车键,页面将在没有它的情况下重新加载。
我的网站曾经是一个简单的 PHP 网站,但我只是将其更改为 angular 应用程序。这在我使用 PHP 和现在使用 Angular 时都会发生。它似乎只发生在 Chrome。站点文件夹中不再有任何 PHP 个文件。
可能是什么原因造成的,我该如何阻止它发生?
编辑:
它仍然发生在一个非常基本的 index.html:
<!DOCTYPE html>
<html>
<body>
HELLO
</body>
</html>
站点目录中没有 PHP 脚本,我在该站点的任何目录中也没有 .htaccess 文件。虚拟主机如下所示:
<VirtualHost *:80>
# Admin email, Server Name (domain name), and any aliases
ServerAdmin josh@joshvickerson.com
ServerName joshvickerson.com
ServerAlias www.joshvickerson.com
# Index file and Document Root (where the public files are located)
DirectoryIndex index.html index.php
DocumentRoot /path/to/site
<Directory /path/to/site/>
Require all granted
</Directory>
# Log file locations
LogLevel warn
ErrorLog /path/to/site/log/error.log
CustomLog /path/to/site/log/access.log combined
</VirtualHost>
它看起来是基于 nginx 重定向的。
如果您的站点是从 www.joshvickerson.com
访问的,则不会重定向,但是,如果是从 joshvickerson.com
访问的,“?from=@”将附加到 [= 的末尾29=].
通过检查网络请求,您可以看到 joshvickerson.com
returns 一个 302 Moved Temporarily
状态代码。这导致它被重定向到 www.joshvickerson.com?from=@
编辑:看起来你是 运行 Apache,即使在响应 Header 中,它将 nginx/1.0.15
列为服务器。
原来我的注册商以某种方式修改了 DNS 记录。包含参数字符串的域有 URL 重定向记录。
不知道那是怎么回事,但这已经解决了。不知道为什么我没有早点想到它。