Answers for "setup 301 redirects from http to https in php"

PHP
3

php 301 redirect

<?php // Permanent 301 Redirect via PHP
	header("HTTP/1.1 301 Moved Permanently");
	header("Location: http://domain.tld/new/location/");
	exit();
?>
Posted by: Guest on September-28-2020

Code answers related to "setup 301 redirects from http to https in php"

Browse Popular Code Answers by Language