How do I perform a 301 redirect with PHP?
Luckily to perform a 301 permanent re-direct from one location to another is very easy with PHP, here's how:
<?php
Header("HTTP/1.1 301 Moved Permanently" );
Header("Location: http://www.theothersite.com");
?>
Comment on this Question and Answer >>>
ASK A QUESTION
More website PHP Questions
How can I use sessions in PHP?How to run a php script on different browsers?
index.php file is automatically deletes from the server.
I was wondering how do i make all the logs and comments go to an email account so my client does not have to keep logging in, she can get them and answer any questions via email.. Thanks
Can somebody help me... im trying to create a search engine using 4 button n php but the problem is i couldn't display the result after i click the buttons.. how to use 4 or more button to search in php?
