phpcms add https background paging wrong solution

  Today's phpcms modify a customer site, he asked to add https, which ytkah is hundreds of times, but the background a little bit of a problem, click on the page fault occurs, move your mouse over the link to display the next page is https: // www .abc.com / www.abc.com / index.php? m = content & c = content & a = init & menuid = 822 & catid = 37 & pc_hash = GsxXx8 & page = 2, is clearly more than a www.abc.com, this profile should be https is not set, then we look for, we locate the folder by keyword in /phpcms/libs/functions/global.func.php, probably in 1591 line

$url = str_replace(array('http://','//','~'), array('~','/','http://'), $url);

  Change it to

$url = str_replace(array('https://','//','~'), array('~','/','https://'), $url);

  Save, upload, refresh the background, and then click on the tab, the already correct.

  Some people may react phpcms background https site domain configuration can not submit, you can refer to this article phpcms site domain name can not submit to configure how to handle https

Guess you like

Origin www.cnblogs.com/ytkah/p/10931444.html