Home > Backend Development > PHP Tutorial > 关于CI的一个有关问题

关于CI的一个有关问题

WBOY
Release: 2016-06-13 10:00:34
Original
984 people have browsed it

关于CI的一个问题
我的网站使用了CI框架.如:www.abc.com
现在我有一个a.txt的文件放在根目录下.想这样访问:
www.abc.com/a.txt

由于使用了CI,不能直接访问,请问有什么方法可以直接访问?


------解决方案--------------------
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

上面的2个RewriteCond加了没有?

Related labels:
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