DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

PHP Redirect Code (with Correct Header)

05.28.2008
| 5939 views |
  • submit to reddit
        
<?php
header ('HTTP/1.1 301 Moved Permanently');
header('Location: http://domain.com/');
exit;
?>