나름대로 유용

redirect

조~~ 아 2006. 3. 10. 22:59
반응형

php로 하는게 가장 좋은 방법인것 같음

Redirect in ColdFusion
<.cfheader statuscode="301" statustext="Moved permanently">
<.cfheader name="Location" value="http://www.new-url.com">

Redirect in PHP
<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http:// www.new-url. com" );
?>

Redirect in ASP
<%@ Language=VBScript %>
<% Response.Status="301 Moved Permanently" Response.AddHeader "Location",
"http:// www.new-url. com">

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://w ww.new-url. com");

}

</script>

반응형