Will code for food; The ramblings of Talifhani Luvhengo;

Redirect, Anyone?

So you wanna redirect your page huh?

html redirect or xhtml redirect(if you wanna be technical)

<meta http-equiv="refresh" content="3;URL=newpage.html">

put the code above in the head of your html page. this code will wait 3 seconds(henc) before it redirects to a page called newpagehtml. So while you wait, you can display a nice message like “Please wait while you area being redirected. ”

Javascript Redirect

<script type="text/javascript">
window.location = "http://www.semicolon.co.za/"

this code will redirect to semicolon.co.za, cause thats where you want to go. ALL THE TIME. You are feeling sleepy…:p

Javascript Redirect

/* php redirect */
header('Location: http://www.semicolon.co.za/');

The php redirect code must be used before any output on the page. That includes the tag.

Get Adobe Flash player

Page optimized by WP Minify WordPress Plugin