我在预生产站点遇到301问题,该问题会自动重定向到我的生产站点。我知道问题来自WP,因为我已经启动了一个curl来查看响应:
1) 针对WP pre-production-site :
> GET / HTTP/1.1
> Host: www.pre-production-site.com
> User-Agent: curl/7.53.1
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Date: Tue, 07 Mar 2017 11:51:19 GMT
< Server: Apache/2.2.22
< Location: http://www.production-site.com/
< X-Content-Type-Options: nosniff
< X-XSS-Protection: 1; mode=block
< X-Frame-Options: sameorigin
< Vary: Accept-Encoding
< Content-Length: 0
< Content-Type: text/html; charset=UTF-8
<
* Connection #0 to host www.pre-production-site.com left intact
2)瞄准我自己
.php file uploaded on the pre-production-site :
> GET /up.php HTTP/1.1
> Host: www.pre-production-site.com
> User-Agent: curl/7.53.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Tue, 07 Mar 2017 11:54:29 GMT
< Server: Apache/2.2.22
< X-Content-Type-Options: nosniff
< X-XSS-Protection: 1; mode=block
< X-Frame-Options: sameorigin
< Vary: Accept-Encoding
< Content-Length: 2
< Content-Type: text/html; charset=UTF-8
<
42* Connection #0 to host www.pre-production-site.com left intact
我不明白,因为我已经检查过:
- 。htaccess文件:不包含任何类型的重定向Apache配置文件:似乎也可以使用递归grep的源代码(如果插件将设置位置:header):找不到任何东西,在哪里设置此301?我不确定我是否留下了您需要的所有信息,所以请随时询问我!
非常感谢您的帮助!