내 로그인 컨트롤러 : $this->load->view('login-view');
CodeIgniter의에서 URL에서 index.php를 제거 후
내 링크 템플릿에 은 다음과 같습니다 anchor('login','Login');
에 URL에서 index.php를 제거하기 전에 codeigniter 잘 작동합니다. 그러나 URL에서 index.php를 제거한 후에는 작동하지 않습니다.
내 htaccess로 파일은 다음과 같습니다
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
하드 그게 전부 내가 가지고, 내가 생각 expalin 할 수 있습니다. :(
'index.php/login'처럼 호출하면 여전히 작동합니까? – Shomz
config.php와 routes.php를 설정 했습니까? – Kenzo
index.php/login works ... 그러나 index.php가 URL에 표시됩니다 ... –