百度云服务器不能实现伪静态
在百度新开的服务器,但是发现之前网站的伪静态不能用,系统报错,(之前在阿里云没有问题),在网上查了很久,
在根目录下加上了bcloud_nginx_user.conf文件。内容是
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}if (!-f $request_filename){
rewrite (.*) /index.php;
}
但是打开连接后发现顶部的url跳转,但是也面不跳转,这个问题查了半天资料了,bcloud_nginx_user.conf这个文件内容也根据网上的改了好多,但是都不生效。用的是thinkphp3.2.
这是网站连接:http://hb019186.bdy.pgdns.cn/index.php