使用自带.htaccess 文件发现 隐藏入口文件index.php 失效
将 .htaccess 由
<IfModule mod_rewrite.c>
Options +FollowSymli
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了,怎么解决??
最佳答案