View Single Post
Old 07-13-2009, 07:47 PM  
Fucksakes
Shit... Fuck! What the Hell?
 
Fucksakes's Avatar
 
Industry Role:
Join Date: Dec 2003
Posts: 7,567
Quote:
Originally Posted by qwe View Post
lets say I have one.php in my root directory on the server, and I activate it from the browser as http://site.com/one.php then I want that to redirect to http://site.com/two.html ... what code do I put in one.php file to redirect to two.html page ?
PHP Code:
<?php
header
("HTTP/1.1 301 Moved Permanently");
header("Location: url here");
?>
Fucksakes is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote