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>
Subscribe to:
Post Comments (Atom)
Take a look on my other postings:
- Blogger templates (6)
- Blogspot - How to (14)
- CSS (1)
- HTML (6)
- Photoshop (1)
- Tricky (12)
- Uncategorized (1)
- Widgets (3)
- Wordpress (6)
- Wordpress Themes (11)
0 comments
Post a Comment