检测一个网址是否进行了301重定向

可以通过爱站http状态查询工具  在线查询地址:   http://tools.aizhan.com/pagestatus/?site=


输入网址进行检测:

比如我输入了    c0ks.com

返回状态码: 301 Moved Permanently
 网页返回HEAD信息如下
 Date: Wed, 06 Jan 2016 15:53:00 GMT
 Content-Type: text/html; charset=UTF-8
 Transfer-Encoding: chunked
 Connection: keep-alive
 Set-Cookie: __cfduid=de5350714383f653bc7475c515c8d02dc1452095580; expires=Thu, 05-Jan-17 15:53:00 GMT; path=/; domain=.c0ks.com; HttpOnly
 Location: http://www.c0ks.com/
 Server: yunjiasu-nginx
 CF-RAY: 260897df0b8b16fe-SZX
 
  返回状态码: 200 OK
 Date: Wed, 06 Jan 2016 15:53:00 GMT
 Content-Type: text/html; charset=utf-8
 Transfer-Encoding: chunked
 Connection: keep-alive
 Set-Cookie: __cfduid=d5650376d7848e14d2ef56567935a507a1452095580; expires=Thu, 05-Jan-17 15:53:00 GMT; path=/; domain=.c0ks.com; HttpOnly
 X-Powered-By: PHP/5.2.17
 Set-Cookie: eTKj_2132_saltkey=V17792yB; expires=Fri, 05-Feb-2016 15:53:00 GMT; path=/; httponly
 Set-Cookie: eTKj_2132_lastvisit=1452091980; expires=Fri, 05-Feb-2016 15:53:00 GMT; path=/
 Set-Cookie: eTKj_2132_sid=a6LHhF; expires=Thu, 07-Jan-2016 15:53:00 GMT; path=/
 Set-Cookie: eTKj_2132_lastact=1452095580%09index.php%09; expires=Thu, 07-Jan-2016 15:53:00 GMT; path=/
 Server: yunjiasu-nginx
 CF-RAY: 260897e07080174c-SZX
 Content-Encoding: gzip
 

301 Moved Permanently代表301重定向了


你可能感兴趣的:(网站)