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

Jeffrey has posted 20 posts at DZone. View Full User Profile

301 Redirect With PHP

07.07.2008
| 3852 views |
  • submit to reddit
        For redirects on servers that have .htaccess locked down:

header('HTTP/1.0 301 Moved Permanently');
header('Location: http://new-page.com/');
header('Connection: close');
exit();