Redirect a site to HTTPS using PHP

This PHP script will redirect web site visitor to HTTPS (SSL) url. You can add this in your index.php of the web site

Move a site to new URL using PHP

You can also use Apache mod_rewrite .htacess to do the redirection.

Add a Comment

Your email address will not be published. Required fields are marked *