Home >Backend Development >PHP Tutorial >CI 里去掉index.php 并 识别css js 文件 技巧

CI 里去掉index.php 并 识别css js 文件 技巧

WBOY
WBOYOriginal
2016-06-20 12:30:21897browse

在 程序目录下

程序---

        --Application

        --system

统一目录新建一个.htaccess 文件

写如下代码即可


<br />RewriteEngine on<br />RewriteCond %{REQUEST_FILENAME} !-f        <br />RewriteCond $1 !^(index\.php|images|robots\.txt)<br />RewriteRule ^(.*)$ /tick/index.php/$1 [L]


OK  现在试试看, 多的不说了,


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn