lishengshu 发表于 2014-5-15 11:04:54

VIEWS下调用DREAMWERVER写好的静态网页出问题

如题,我将DREAMWERVER写好的静态网页,包含HTML,CSS,IMAGE图片一起放在了VIEWS下。
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<base href="<?php echo base_url(); ?>"/>
<link href="<?php echo base_url("application/views/css/booking.css");?>"

base_url()设置的是$config['base_url']        = 'http://localhost/ci/';
3处.htaccess处也设置了
RewriteEngine on   
RewriteCond $1 !^(index\\.php|images|js|css|robots\\.txt)
RewriteRule ^(.*)$ /index.php/$1
但是仍然出错,CSS没用,图片也不显示,求高手指点

一叶扁舟 发表于 2014-5-15 16:19:21

RewriteCond $1 !^(index\\.php|images|js|css|robots\\.txt)
已经限制了不能访问application文件夹了,你要不css和图片都丢根目录images或者js或者css文件夹里,要不上边添加个application项,推荐前者

lishengshu 发表于 2014-5-15 17:33:25

3Q了!:victory:
页: [1]
查看完整版本: VIEWS下调用DREAMWERVER写好的静态网页出问题