我了,我为我的网站的新域名,它曾经是SomeOldWebsiteURL.com,现在它NewWebsite.com,下面是我放在我的旧服务器上的HTML重定向页面。
我的整个小重定向页以下。这是要在传统的ASP和VBScript,我别无选择。
<%
Dim str As String = HttpContext.Current.Request.Url.Host
If (String.Compare(HttpContext.Current.Request.Url.Host, "SomeOldWebsiteURL.com", True) = 0) Then
Response.Redirect("index.asp")
End If
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
</head>
<html>
<body>
</body>
</html>
当我尝试运行此,我得到预期的语句结束"错误"作为字符串就行了昏暗的STR。没有任何人有一个建议,我可能是做错了?
在此先感谢!
布赖恩:布赖恩ç哈特