Skip to content

Instantly share code, notes, and snippets.

@Shelob9
Created May 6, 2019 10:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shelob9/804a01ccb5b8790a93362fb074794751 to your computer and use it in GitHub Desktop.
Save Shelob9/804a01ccb5b8790a93362fb074794751 to your computer and use it in GitHub Desktop.
<?php
function forceHttps($url){
return preg_replace("/^http:/i", "https:", $url);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment