Over a million developers have joined DZone.

301 Redirect With PHP

·
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();
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}