Geek's place

How To make an web redirection ?

Use the refresh attribute. Just put the following html page at the old location.

This sample waits 2s before to redirect.

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
 <head>
  <title>Redirection.html</title>
  <meta http-equiv="refresh" content="2;URL=the new location">
 </head>
 <body>
  <center>
    <h1>This page has moved to <a href="New location">New location</a>
    <p>If nothing happens within a few seconds, please click on the link.</p>
  </center>
 </body>
</html>

Other solution in php (this example is to force use of https):

<?php
if ($_SERVER['SERVER_PORT'] != 443) {
   header("HTTP/1.1 301 Moved Permanently"); //For webbots
   header("Location: https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
   exit();
}
?>

Also possible with .htaccess file.

Redirect permanent / http://www.nouvelle-adresse.fr
Redirect 301 / http://www.nouvelle-adresse.fr
RedirectPermanent / http://www.nouvelle-adresse.fr
Design selector