PHP Questions Home | Register | Login
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website
Unanswered

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

How do I perform a 301 redirect with PHP?


Performing a 301 re-direct with PHP is a more and more common question people ask, due to the emphasis on making sure that ranking points aren't lost and duplicate content issues are resolved as best as is possible.

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?



Custom Search