301 Redirect in ColdFusion
<.cfheader statuscode="301″ statustext="Moved permanently">
<.cfheader name="Location” value="http://www.new-site.com">
301 Redirect in PHP
<?php
Header( “HTTP/1.1 301 Moved Permanently” );
Header( “Location: http://www.new-site.com” );
?>
301 Redirect in ASP
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently”
Response.AddHeader “Location", ” http://www.new-site.com”
>
301 Redirect in ASP .NET
<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = “301 Moved Permanently";
Response.AddHeader("Location","http://www.new-site.com");
}
</script>