컴퓨팅/프로그래밍
HTTP redirect
에어버스
2013. 8. 26. 16:05
제목 그대로 웹 개발 언어의 redirect.
- HTML
<meta http-equiv=Refresh content=0;url="URL">
- Javascript
location.href="URL";
- ASP
<% RESPONSE.REDIRECT "URL" %>
- PHP
<? header("Location: URL"); exit; ?>
또는
echo "<meta http-equiv='refresh' content='0;url=URL'>";
- JSP
<% response.sendRedirect("URL"); %>