Baidu Cloud Virtual host BCH How to set pseudo-static-url rewrite

Source: Internet
Author: User
The first step: in the root directory of the site (Webroot directory) to create a new bcloud_nginx_user.conf file (BCH is not allowed to modify the underlying configuration file, can only be loaded by the custom configuration file), write the following code:

#百度云虚拟空间nginx服务器的配置
Location/{
if (!-e $request _filename) {
Rewrite ^ (. *) $/index.php?s=/$1 last;
Break
}
}

Second step: Find "site start stop" in the Host Control Panel, click "Reload Site" service. (Remember to reload the rule after you modify it, otherwise it will not take effect)

Baidu Cloud Virtual host BCH How to set pseudo-static-url rewrite

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.