나는 자산 폴더를 만들고 그 안에 css 폴더를 만들었습니다.codeigniter2는 index.php와 함께 CSS를로드 할 수 없습니다. url
URL로 한 100 % 잘 작동<link href="<?php base_url()?>assets/css/css.css" rel="stylesheet" type="text/css" />
은 다음과 같습니다 : CSS 파일을 액세스하기 위해 나는이 할
http://localhost/web/
그러나이 난
http://localhost/web/index.php
또는 URL을 변경하는 경우
http://localhost/web/index.php/welcome/
s tops는 CSS 또는 이미지를로드 중입니다. CSS 파일은 위치가 다음과 같은 자산 폴더에 있습니다. localhost/web/assets/
여기서 이미지는 php 파일과 함께보기 폴더에 있습니다.
내 htaccess로 파일이
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
처럼 보인다 플러스 내 htaccess로 파일은 응용 프로그램 폴더에
config.php에서 어떤 base_url을 설정 했습니까? Firebug와 같은 도구를 사용하여 페이지를 보면 CSS 파일을로드하려고하는 URL이 무엇입니까? –