질문 Q #23066
redirect 시 주소창에 index.php 뜨는것 지우기
잡발자 2021-02-08 16:18:53

안녕하세요~ 그누보드에서 코드이그나이터로 넘어왔습니다~ 

$this->view->load() 로 사용시에는 주소창에 index.php 가 지워지는데, 

redirect 로 사용시에는 index.php 가 중간에 뜨더라구요~ 

혹시 redirect 시에도 index.php 가 중간에 안뜨게 가능할까요?? 

.htaccess 는 아래와 같이 적었습니다! 

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

 

답변 2
#1 한대승(불의회상) 2021-02-08 16:28:15

application/config/config.php 파일에서

$config['index_page'] = '';

로 바꿔 주세요.

#2 잡발자 2021-02-08 16:36:19

한대승님 감사합니다! 

말씀대로 해보니 잘 됩니다!