---
id: 20
title: 'www – Redirect Page'
date: 2003-04-27T14:37:57+00:00
author: hky
layout: post
guid:
http://lostfocus.org/blog/?p=20
permalink: /www-redirect-page/
dsq_thread_id:
- 2165134119
tags:
- Lab
---
Cara Redirect webpage dalam bermacam gaya
kasus : redirect ke lostfocus.org
**HTML**
<html>
<head>
<meta http-equiv=”Refresh” content=”0;URL=
http://lostfocus.org”>
</head>
</html>
**PHP**
<?
header (“Location:
http://lostfocus.org”);
?>
**CGI**
* Perl
#!/usr/bin/perl
print “Location:
http://lostfocus.org\n\n”;
* Python
#!/usr/local/bin/python
print “Location:
http://lostfocus.org\n\n”;
(jangan lupa chmod file nya ke 755)
**JSP**
<%
response.sendRedirect(“
http://lostfocus.org”);
%>