차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판이전 판
tech:php_redirect [2019/03/13 10:44] – [301 redirect] V_Ltech:php_redirect [2019/03/13 10:45] (현재) – [301 redirect] V_L
줄 20: 줄 20:
 <file php> <file php>
 <?php <?php
-        header("Location: http://test.com/test.php",TRUE,301); +   header("Location: http://test.com/test.php",TRUE,301); 
-        exit();+   exit();
 ?> ?>
 </file> </file>
줄 31: 줄 31:
 |Windows hone|IEMobile|POLARIS",$HTTP_USER_AGENT)) |Windows hone|IEMobile|POLARIS",$HTTP_USER_AGENT))
 { {
-header("location:/mobile",TRUE,301);exit;+  header("location:/mobile",TRUE,301);exit;
 } }
 </file> </file>