Home » Applications » ASP.NET » Page Redirect

Page Redirect

HTML


<meta http-equiv="refresh" content="0;url=http://google.com">


Javascript

<script language="javascript">
<!--
location.replace("http://google.com")
//-->
</script>

Asp / ASP.Net

<%
Request.Redirect("http://google.com")
%>

Php

<?php

   header( 'Location: http://google.com' ) ;

?>

Perl

(method 1)

#!/usr/bin/perl

use strict;
use warnings;

my $url = "http://google.com";
print "Location: $url\n\n";

(method 2)
#!/usr/bin/perl

print "Content-Type: text/html\n";
print "Location: http://google.com\n\n";

(method 3 - using CGI module)
#!/usr/bin/perl

use CGI;
my $cgi = new CGI;

print $cgi->header(-location => q[http://google.com]);