English 中文(简体)
HTTP 将网络重定向到移动版本的 HTTP 重定向状态代码
原标题:HTTP Redirect Status code for redirect a web to the mobile version
  • 时间:2012-05-24 13:18:58
  •  标签:
  • http
  • mobile

HTTP 重定向状态代码是将网页重定向到移动版本的最佳方法吗?

From: www.example.com

To: m.example.com

问题回答

http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.2>>301,同时使用

临时调整(302或307)应足以满足这一需要。

"https:// developmenters.google.com/webmasters/smartphone-sites/redirects" rel=“nofollow”>Google智能手机站点重定向指南 States-

For this purpose, it does not matter if the server redirects with an HTTP 301 or a 302 status code.

因此,302比307可能更好。

准则建议,“Vary”页头应是200份答复的一部分。





相关问题
How to set response filename without forcing "save as" dialog

I am returning a stream in some response setting the appropriate content-type header. The behavior I m looking for is this: If the browser is able to render content of the given content type then it ...

Which Http redirects status code to use?

friendfeed.com uses 302. bit.ly uses 301. I had decided to use 303. Do they behave differently in terms of support by browsers ?

Does HttpWebRequest send 200 OK automatically?

Background: I am implementing Paypal IPN handler. This great article on Paypal states that I am required to send a 200 OK back to Paypal after I read the response. The processing of IPN request is ...

Java HTTPAUTH

我试图把桌面应用程序连接起来,我是同D.icio.us api @ Delicious Alan书写的,简单地向他们提供我的用户名和密码,并请他把书记上写给我......。

Finding out where curl was redirected

I m using curl to make php send an http request to some website somewhere and have set CURLOPT_FOLLOWLOCATION to 1 so that it follows redirects. How then, can I find out where it was eventually ...