PHP CI – index.hml 없애기 – 2

application/config/config.php  파일의 아래와 같이 빈칸으로 변경

$config[‘index_page’] = ”;

아래와 같이 CI 가 설치 폴더의 처음 열리는 index.php  있는 폴더에    ” .htaccess  ”  파일 아래 내용을 참조해서 만들어 넣는다.

.htaccess 내용 아래 - 

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

.htaccess 의 파일의 권한을 777 로 변경 한다.

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다