How to add http:// if it is not in the URL? Other Use the below given function for it function addhttp($url) { if (!preg_match(“~^(?:f|ht)tps?://~i”, $url)) { $url = “http://” . $url; }… September 20, 2015 Read more