3
我刚开始使用codeigniter,并希望在我的视图中包含一些外部css。这是我的目录结构:codeigniter中的资产
application
....
system
....
assets
css
style.css
我使用这个HTML代码链接的文件:(使用example.com作为一个例子,笑)
<link rel="Stylesheet" type="text/css" href="http://example.com/assets/css/style.css"/>
这里是我的.htaccess文件:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
现在,我的问题是,它返回一个404错误。说如果你需要更多的信息。
在此先感谢!
哇,谢谢!它效果很好!感谢m8! – Fredefl