The most basic example of a level two corn

Source: Internet
Author: User
Tags include servervariables
<% 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

This is the solution I can think of now.


Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.