301 moved permanently php code example
Example: php 301 redirect
<?php // Permanent 301 Redirect via PHP
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://domain.tld/new/location/");
exit();
?>
<?php // Permanent 301 Redirect via PHP
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://domain.tld/new/location/");
exit();
?>