질문
Q #12634
CodeIgniter resource 홀더 문제
코스타
2015-11-20 02:31:45
url 에서 index.php 를 제거 하기 위해 htaccess file을 추가했습니다
현재 프로젝트는 /apptest sub 홀더에 있습니다
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond $1 !^(index\.php|images|captcha|data|include|uploads|resource|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ apptest/index.php?/$1 [L]
</IfModule>
그래서 url 에서 index.php 는 제거했는데 resource 홀더에 있는 자원을 찾지 못하고 있습니다
첫 페지에서는 리소스를 적재할수 있는데 로그인해서 부터 찾지 못합니다
첫페지에서 리소스를 보면 localhost/apptest/resource/jquery.js 로 정확히 되는데
로그인 해서 부터는 localhost/resource/jquery.js 로 인식합니다
프로젝트가 sub 홀더에 있을 때 문제인데 조언 부탁 드립니다
RewriteEngine On RewriteCond $1 !^(index\.php) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L]