- 积分
- 117977
- 威望
-
- 金钱
-
- 注册时间
- 2009-4-24
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
发表于 2013-9-2 10:09:15
|
显示全部楼层
前面帖子我已经说过了,除非设置了301或程序上加了301
配置上没问题,基本上就是程序的问题。
看你程序上是wp,你在wp设置的是不带www为主域名,所有访问带www的域名会先有301了
root@vpser:~# curl -IL bilpage.com
HTTP/1.1 200 OK
Server: nginx/1.2.7
Date: Mon, 02 Sep 2013 02:00:34 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding
X-Powered-By: PHP/5.2.17p1
X-Pingback: http://bilpage.com/xmlrpc.php
root@vpser:~# curl -IL www.bilpage.com
HTTP/1.1 301 Moved Permanently
Server: nginx/1.2.7
Date: Mon, 02 Sep 2013 02:00:40 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/5.2.17p1
X-Pingback: http://bilpage.com/xmlrpc.php
Location: http://bilpage.com/
HTTP/1.1 200 OK
Server: nginx/1.2.7
Date: Mon, 02 Sep 2013 02:00:41 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding
X-Powered-By: PHP/5.2.17p1
X-Pingback: http://bilpage.com/xmlrpc.php |
|