CI 里去掉index.php 并 识别css js 文件 技巧
程序员文章站
2024-01-09 21:17:11
...
在 程序目录下
程序---
--Application
--system
统一目录新建一个.htaccess 文件
写如下代码即可
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /tick/index.php/$1 [L]
OK 现在试试看, 多的不说了,
上一篇: 怎么截取别人信息