Because of the need for revision, a section of the fire net needs to do 301 redirects, this is a long time ago the fire under the navigation of a search, using the ASP language, but spiders like, so can not delete, had to write a 301 redirect, but the original many URLs are parameters, such as tag tag, Form such as: Liehuo_tag.asp?q=%c1%d2%bb%f0%cd%f8.
Studied a bit, to solve the 301 redirect belt parameters of the problem, special to share with you, welcome friends to support the fire network more.
The code is as follows:
<%
if request. ServerVariables ("http_host") = "Liehuo.net" Then
if Request.ServerVariables ("Query_string") <> "" Then
p= "?"
response.status= "Moved Permanently"
Response.AddHeader "Location", "http://www.veryhuo.com" &request.servervariables ("Script_name")
&p&request.servervariables ("Query_string")
Response.End
Else
response.status= "Moved Permanently"
Response.AddHeader "Location", "http://www.veryhuo.com/"
Response.End
End If
End If
%>