
May 18th, 2011, 06:47 AM
|
|
Registered User
|
|
Join Date: May 2011
Posts: 21
Time spent in forums: 12 h 34 m 6 sec
Reputation Power: 0
|
|
|
redirect in html
if your old pages are html, then add a meta tag like this in the head:
Code:
<meta http-equiv="REFRESH" content="0; url=http://www.google.com" />
if your old pages are .aspx files, then replace all code in that file with this code:
Code:
<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
Private Sub Page_Load(sender As Object, e As EventArgs)
If (Response.IsClientConnected) Then
Response.Redirect("http://www.google.com", False)
Else
Response.End()
End If
End Sub
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title></title>
</head>
<body>
</body>
</html>
|