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

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

WBOY
Release: 2016-06-20 12:30:21
Original
906 people have browsed it

在 程序目录下

程序---

        --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]
Copy after login


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


source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template