Thursday, May 26, 2011

Redirection Tags

Redirection tag in html and php

PHP redirection
<?php
header('Location: https://WebAddress');
?>

Example;
<?php
header('Location: https://itbuddhika.blogspot.com');
?>


HTML redirection
Placing the code below on your web page within home tag
<META HTTP-EQUIV="Refresh" CONTENT="5; URL=http://itbuddhika.blogspot.com;">

will be redirected to http://itbuddhika.blogspot.com in 5 seconds after loading.

No comments:

Post a Comment

latest virus and spyware detection