thinkphp5 所有的css文件和图片文件都要放到public里面引用吗?

浏览:2400 发布日期:2016/06/20 分类:求助交流 关键字: 奇怪的问题
版本5 的访问目录是public,
使用自带.htaccess 文件发现 隐藏入口文件index.php 失效
将 .htaccess 由
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
改为:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ index.php
</IfModule>
后发现 没法引用css或者js资源了! 所有的请求都转向 index.php了,怎么解决??
最佳答案
评论( 相关
后面还有条评论,点击查看>>