Try like this in your redirect.php
<?php $ref = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; if (strpos($ref, "index2")) { header('Location: index2.html'); } if (strpos($ref, "index3")) { header('Location: index3.html'); } require('index.html'); ?> [/CODE] And you need to have <title>index2</title> and so on in your html code for the pages.