페이지를 리디렉션하는 동안 codeigniter를 처음 사용합니다. index.php가 기본적으로로드되지 않으므로 htaccess 파일에서 아래 코드를 시도했습니다. PHP 5.3.10, 아파치 서버 및 포스트그레스 데이터베이스를 설치했습니다. 그래서 새로운 설정이 .htaccess와 httpd.conf를 변경하는 것 외에는해야한다면 알려주세요. 이전 질문에 동일한 문제에 대해 물어 보았습니다. 그런 질문에서 모든 것을 언급했지만 여전히 해결할 수는 없습니다. 끝내야 할 여분의 일을 알려주십시오.codeigniter 리디렉션이 index.php없이 작동하지 않습니까?
htaccess로 파일
<IfModule mod_rewrite.c> RewriteEngine On #Checks to see if the user is attempting to access a valid file, #such as an image or css document, if this isn't true it sends the #request to index.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d #This last condition enables access to the images and css folders, and the robots.txt file RewriteCond $1 !^(index\.php|public|images|robots\.txt|css) RewriteRule ^(.*)$ index.php/$1 [L] </IfModule>
RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^/(index\.php|assets/|humans\.txt) RewriteRule ^(.*)$ index.php/$1 [L]
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
httpd.conf 파일 로컬 호스트
<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
</Directory>
도움이 될 수 있습니다. http://stackoverflow.com/questions/20188957/removing-index-php-offical-guide-not-working-code-igniter?rq=1 – Pooshonk
다시 쓰기 모듈을 사용할 수 있습니까? – lyhong
'application/config/config.php'에서'$ config [ 'index_page'] = '';'를 확인하십시오 –