CI 서브 폴더 사용CI 서브 폴더 사용
Posted at 2021. 2. 17. 15:41 | Posted in PHP/CodeIgniter반응형
cikorea.net/bbs/view/qna?idx=12166
.htaccess 기본 설정
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond $1 !^(index\.php|images|captcha|data|include|uploads|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] </IfModule> |
.htaccess 기본 설정 변경
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond $1 !^(/프로젝트_디렉토리명/index\.php|images|captcha|data|include|uploads|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /프로젝트_디렉토리명/index.php/$1 [L] </IfModule> |
반응형
'PHP > CodeIgniter' 카테고리의 다른 글
[CodeIgniter] _rmap을 이용한 화면 상단, 하단 레이어 고정 (0) | 2020.02.12 |
---|---|
[CodeIgniter] 폼 검증하기 (0) | 2019.12.17 |
[CodeIgniter] 컨트롤러(Controllers) 사용방법 (0) | 2019.07.31 |
[CodeIgniter] DataBase 접속 설정하기 (0) | 2019.07.25 |
[CodeIgniter] 리눅스 환경에 코드이그나이터 세팅하기 (0) | 2019.07.23 |