<?php $url = str_replace('/forum/', 'http://www.sitem.com/', $_SERVER['REQUEST_URI']); header("Location: ".$url); ?>