The method of using 404 to solve the change of page path is mainly to make it user-friendly. It turns out that users rely on search engines to enter each of my articles. How can I let users jump from an old page to a new page, and the article unchanged, such as:
program code
http://www.vevb.com/blog/article.asp?id=381 //Old URL
Automatically jump to after entering
http://www.vevb.com/article.asp?id=381
This requires the 404 page of the new321 server to handle. The code is as follows:
program code
<%
url=Request.ServerVariables(QUERY_STRING)
arr=Split(url,/blog) 'Split with /
n=ubound(arr) 'Find the last /
%>
<script language=javascript>
window.top.location=http://www.vevb.com<%= arr(n)%>;
</script>
Of course, it is only suitable for use with the same program