<% Dim Temp1, Temp2, Temp3
Temp1 = Request.ServerVariables ("Http_host")
Temp2 = Right (Request.ServerVariables ("Http_host"), 14) ' 14 means that your domain name removes the number of characters left after the suffix. As the following ". Yaojerry.name" does not include quotes, it is 14 characters.
Temp3 = Replace (TEMP1,TEMP2, "")
%>
<%if Temp3 <> "www" and Temp3 <> "blog" Then
Response.Redirect "Http://www.yaojerry.name/blog/blog.asp?name=" & Temp3%>
<%end if%>
Save to the INC directory Test.asp (file name can be arbitrarily taken)
Add the following sentence after the index.asp file "<!--#include file=" conn.asp "-->".
<!--#include file= "inc/test.asp"-->
Additional IIS servers are required to set an empty HTTP header
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.