![]() |
|
首页 │ Apache │ Linux│ Java│ MySQL│ 注册│帮助 | |||
相关问题
以下是301转向的代码,有ASP和PHP的
PHP的少了判断GOOGLE,哪位高人可以帮忙写一下,感激不尽
ASP
CODE: <% if instr(Request.ServerVariables("HTTP_USER_AGENT"),"Google") then Response.Status="301 Moved Permanently" Response.AddHeader "Location","http://www.google.com/" Response.End() else Response.Redirect("http://www.21andy.com") end if %> |
PHP
CODE: <? header("HTTP/1.1 301 Moved Permanently"); header("Location:[url]http://www.21andy.com/[/url]); exit(); ?> |
提问者:21andy 08-18 11:11
答复

