Wednesday, 19 December 2012

301 redirect through php code


if($_SERVER['REQUEST_URI'] == '/events')
{
header ('HTTP/1.1 301 Moved Permanently');
header("Location: /events_page");
exit;
}


Also you can do this through .htaccess file at your root
Redirect 301 /broker-foex http://www.domain.com/brokers/forx-brokers-reviews

No comments :

Post a Comment