Redirecionamento de várias formas:

HTML

1
2
3
<head>
<meta http-equiv=”refresh” content=”1; url=http://www.seusite.com.br/”>
</head>

JavaScript

1
2
3
<script language=”JavaScript” type=”text/javascript”>
window.location=”http://www.seusite.com.br”;
</script>

PHP

1
2
3
 <?php
header(“Location: http://www.seusite.com.br”);
?>

ASP

1
2
3
<%
Response.Redirect “http://www.seusite.com.br”
%>

ASP.Net

1
2
3
4
5
6
7
 <script runat=”server”>
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = “301 Moved Permanently”;
Response.AddHeader(“Location”,”http://www.seusite.com.br”);
}
</script>

Coldfusion

1

2

<.cfheader statuscode=”301″ statustext=”Moved permanently”>
<.cfheader name=”Location” value=”http://www.seusite.com.br”>

JSP

1 <% response.sendRedirect(“http://www.seusite.com.br”); %>

htaccess

1 RewriteRule (.*) http://www.seusite.com.br/$1 [R=301,L]