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}}