2008/05/11

영구적인 웹페이지 Http 301 Redirect 예제

PHP Redirect
<?
     Header( "HTTP/1.1 301 Moved Permanently" ); 
     Header( "Location: http://www.wssplex.net/" );
?>


ASP Redirect

<%@ Language=VBScript %>
<%
     Response.Status="301 Moved Permanently"
     Response.AddHeader "Location",http://www.wssplex.net/
%>


ASP .NET Redirect

<script runat="server">
     private void Page_Load(object sender, System.EventArgs e)
     {
          Response.Status = "301 Moved Permanently";
          Response.AddHeader("Location",http://www.wssplex.net/);
     }
</script>


JSP (Java) Redirect

<%
     response.setStatus(301);
     response.setHeader( "Location", http://www.wssplex.net/ );
     response.setHeader( "Connection", "close" );
%>


IIS Redirect




11-http-301-iis-redirect.gif

댓글 없음:

댓글 쓰기

가장 많이 본 글