Home > CMS Tutorial > PHPCMS > body text

Pagination is not displayed after phpcms changes the protocol to https

王林
Release: 2020-02-06 17:17:34
Original
2197 people have browsed it

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);
Copy after login

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);
}
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template