Redirection

Posted by Planeta Srbija | 2.5.08 | | 0 comments »

Redirektion is "pull over" from one web page or web site to another.
You can use your Wordpad or Notepad to paste in a following code, save the file exactly as the old, not existing web page, or name the file "index.php" if you want to redirect from one domain to another:

<?php
header("Location: http://www.example.com/");
exit();
?>

If the page did not had the extension ".php" but ".html", then make a new .html page and between

<head>
.
.
</head>

insert following:

<meta http-equiv="refresh" content="N; URL=http://www.example.com">

and "N" stands for number of seconds until redirektion.



For redirect purposes you can also use this script. Put it above first
<html> flag, or between <HEAD> and </HEAD> tags:

<script language="javascript" type="text/javascript">
<!--
window.location="http://www.example.com/";
// -->
</script>

0 comments

Take a look on my other postings: