我有像这样的.htaccess mod_rewrite的绕过了深刻的目录结构CSS资产
的设置0http://localhost/
http://localhost/ci_tada/
http://localhost/ci_tada/application
http://localhost/ci_tada/application/views
http://localhost/ci_tada/application/views/css
http://localhost/ci_tada/application/views/css/master.css
我不希望有每次我想访问一个CSS文件时,写入
(同样适用于图像ECT)
我希望能够到只需使用 http://localhost/ci_tada/css/master.css
并让它加载正确的文件。
.htaccess文件位于ci_tada文件夹中。
啊,我什至没有想到路由。关于如何在代码Igniter中执行路由的任何想法,据我所知,路由仍然通过index.php – Hailwood 2010-11-17 02:32:14
回复上面编辑:1 – eagleal 2010-11-17 02:38:33
您可以告诉我们您的.htaccess,所以我可以集成它与上面的答案。也看到这个SO线程,如果它有帮助http://stackoverflow.com/questions/3729340/how-do-i-add-some-static-routes-to-a-codeigniter-app – eagleal 2010-11-17 02:59:17