<html>
<head>
<?php
// Permanent redirection
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.mysite.org/content/");
exit();
?>
</head>
<body>
</body>
</html>
error when I load the page, test.php, located in Up At Six HTTP Server Test Page (name of website is actually different):
Warning: Cannot modify header information - headers already sent by (output started at /home2/mysiteorg/public_html/test.php:7) in /home2/mysiteorg/public_html/test.php on line 13
Warning: Cannot modify header information - headers already sent by (output started at /home2/mysiteorg/public_html/test.php:7) in /home2/mysiteorg/public_html/test.php on line 16
It doesn't matter if I change the name to index.php, remove the exit(), put the php code in the body, or before the header, remove the / after content, or redirect to the index.php file located in www.mysite.org/content, it still doesn't work.


Sign In
Create Account


Back to top









