코드이그나이터에서 index.php 죽이기


코드이그나이터를 처음 설치후 프로그램 하다보면, 주소 부분에 index.php가 있어야 합니다. 


http://도메인/index.php/page


위의 주소를 


http://도메인/page


형태로 사용 하려 할때 .htaccess 파일을 아래와 같은 코드로 생성 해야 합니다. 


먼저, 메모장을 열고


<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteCond $1 !^(index\.php|images|captcha|data|include|uploads\.txt)

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ /index.php/$1 [L]

</IfModule>


위 내용으로 입력후 .htaccess 파일로 저장후 루트 디렉토리에 넣어 주시면, 정상으로 접속 된답니다.


TAGS.

Comments