저는 Apache 2.2.22를 Ubuntu 12.04.3 (Windows 8.1에서는 Oracle VM)에서 실행하고 있습니다. PHP phpinfo() 함수 사용하기로드 된 모듈의 apache2handler 섹션에서 mod_rewrite를 볼 수 있으므로 mod_rewrite가 활성화됩니다. CodeIgniter 2.2.0에서 index.php 제거
은 내가 여러 버전이 (CI의 루트 디렉토리에있는 htaccess로 파일)을 시도$config['index_page'] = 'index.php'; to: $config['index_page'] = '';
$config['uri_protocol'] = 'AUTO'; to: $config['uri_protocol'] = 'PATH_INFO';
내 CI의 설정 파일 (application/config/config.php)을 다음과 같이 변경을했다 :
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
그러나 아직 작동하지 않아야합니다. 그 밖의 무엇을 내가 여기에서 놓치고 있냐?
그렇다면'.htaccess' 파일을 루트 디렉토리에 만들어야합니까? '.htaccess' 파일이 codeigniter 2.2의 루트 디렉토리에 존재하지 않는다는 것을 알기 때문에 –