Sesame Design

Monday, August 28, 2006

Redirects

Webpage/Web site Redirects

Optimally you should always do this on the server side with a 403 Redirect. As a resort, and for certain other usages you can use an HTML redirect. Below are a few examples:


HTML Method:
<meta equiv="Refresh" content="0; URL=http://www.website.com/html-redirect.html">

ASP Method:
<% Response.Redirect "http://www.w3schools.com" %>

PHP Method:
<?php
header( 'Location: http://www.yoursite.com/new_page.html' ) ;
?>

0 Comments:

Post a Comment

<< Home