TP5url重写后,如何引用静态资源文件?

浏览:2983 发布日期:2018/01/29 分类:ThinkPHP5专区
nginx里配置了因此index.php的选项
if (!-e $request_filename)
{
#地址作为将参数rewrite到index.php上。
rewrite ^/(.*)$ /index.php/$1;
}

url可以不带index.php了,但是访问css等资源文件(如http://www.test.com/static/css/test.css)也会出错,提示
模块不存在:static
最佳答案
评论() 相关
后面还有条评论,点击查看>>