mod_rewrite , htaccess 관련 문의입니다.
개발 PC 가 바껴서 새로 세팅을 하는 중에
mod_rewrite 관련 부분에서 애먹고 있습니다.
현재 상황은 httpd.conf 파일에서 mod_rewrite 모듈 로드 했고 아래와 같이 설정도 해두었습니다.
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
ci config.php 파일에 "index.php"; 부분을 ""; 이것으로 바꾸었습니다.
또한 .htaccess 파일에 설정은 이와 같이 하였습니다.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /
</IfModule>
포럼 글들을 많이 찾아보고 구글링도 해보았지만 아직 해결 되지 않아서 혹 비슷한 문제를 겪으신 분이 있으실까 해서
글을 올려 봅니다. ㅜㅜ
혹시 제가 간과하고 있는 부분이 있는지 궁금합니다. 도와주세요~^^;
아파치에서 루트경로를 DocumentRoot "C:/test/ci" 으로 잡았고
.htaccess 파일은 C:/test/ci/.htaccess 에 위치합니다.