StupidBeauty
Read times:388Posted at:Sat Mar 31 05:39:35 2012
- no title specified

转载:内容重定向和HTTP状态代码

常见的两种用来重定向的HTTP状态码:301和302.

http://www.zhongsisi.com/content-redirection-and-http-status-code/

亮点:

301 302 重定向 .当状态代码时301或者302时,HTTP头并不包含HTML内容,但附加一个Location信息,指示需 要重定向的另外一个URL地址。重定向时可以串联的,但是要尽量避免多重的串联重定向。由于重定向的地址指示加入搜索引擎检索计划的而不是马上检索它的, 所以重定向具有检索慢的不足。

  1. 1. 301 表示永久转移,从理论上将,新页面将会继承旧页面的排名等,但需要一定的时间,老的URL地址将被删除。

  2. 2. 302 表示临时转移。服务器需要注意”302劫持”,因此在实际应用时,需要考虑302状态是否必须。

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4