现象:
把apache换成了nginx后,发现网站的播放页面明明生成了静态html文件,可是访问的确是伪静态文件(静态和伪静态路径一样)。
解决方法:
1、apache
在.htacess 文件中第二行增加:
RewriteCond %{REQUEST_FILENAME} !-f
其它常用的参数:
2、nginx
if (!-f $request_filename){ rewrite ^/(.*)/(.*)/(.*)-(.*)$ /index.php?s=/vod-play-id-$2-sid-$3-pid-$4-listname-$1; }
判断文件存在则优先访问文件,不存在则访问rewrite路径
原文链接:https://www.qiquanji.com/post/5233.html
本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。

微信扫码关注
更新实时通知