View Single Post
Old 06-09-2017, 06:29 PM  
porn-update
Confirmed User
 
porn-update's Avatar
 
Industry Role:
Join Date: Apr 2014
Posts: 380
No, the function is inserted in place of http (hand-written) in the code, so now everything is https, so http now no longer exists ...

before
Code:
<link rel="canonical" href="<?php echo 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; ?>" />
Now
Code:
<link rel="canonical" href="<?php echo URL_protocol().$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; ?>" />
porn-update is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote