Renrenzhan CMS-Baidu Cloud Space to remove the method of index.php in the URL

Universally applicable to Baidu cloud web hosting

Baidu cloud bch cloud host supports nginx original ecological pseudo-static rule writing. Please write the rule to the bcloud_nginx_user.conf file in the /webroot/ directory (create it if it does not exist), and the overloaded site will take effect.
First we write a bcloud_nginx_user.conf file and write the following code:

location / {
    if (!-e $request_filename) {
        rewrite ^(.*)$ /index.php?s=/$1 last;
        break;
    }
}

ftp upload Go to the root directory of the website, and then go to Baidu cloud virtual machine site overview - site start and stop - reload site service
and then go to the website background advanced options - clear cache

{{o.name}}
{{m.name}}

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=324085957&siteId=291194637