Home  >  Article  >  CMS Tutorial  >  Pagination is not displayed after phpcms changes the protocol to https

Pagination is not displayed after phpcms changes the protocol to https

王林
王林Original
2020-02-06 15:36:052149browse

Pagination is not displayed after phpcms changes the protocol to https

Problem:

phpcmsv9 paging cannot be displayed normally after changing the protocol to https.

Solution:

1. Open the file phpcms\libs\functions\global.func.php

2. Search for function pageurl

and replace the following code :

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

is recommended for

//ASMITA修改
if(substr($url,0,5)=="https"){
	$url = str_replace(array('https://','//','~'), array('~','/','https://'), $url);
}
else{
	$url = str_replace(array('http://','//','~'), array('~','/','http://'), $url);
}

related article tutorials: phpcms tutorial

The above is the detailed content of Pagination is not displayed after phpcms changes the protocol to https. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn