I'm trying to redirect certain pages using PHP, and all the online instructions tell me to do it as follows. However, when I save a page with this code and try to load it, the PHP does not parse but merely prints out and so there is no page redirection. What am I doing wrong? The page with the script below is in a directory on my site that parses PHP correctly for all my other php pages. Thanks, Brian <?php header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.mydomain.com/index.html" ); header( "Status: 301 Moved Permanently" ); ?> PHP:
Thanks Frogs, For some reason, your code works for me although my original (which I thought said the same thing) didn't. Brian