on
코드이그나이터 index.php 오류 수정
코드이그나이터 index.php 오류 수정
아파치 설정
LoadModule rewrite_module modules/mod_rewrite.so 활성화 확인
.htaccess 추가
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]
서버디렉토리 설정
AllowOverride All 확인
---------------------
이때까지 이렇게해서 많은 프로젝트들을 해쳐왔는데,, 오늘은 이상하게
No input file specified. <<라는 에러를 내뱉어내며 사이트가 뜨지않습니다.
해결방법을 찾다가 2009년 게시물을 보고 해결했네요..(역시 웅파님은 대단하십니다..)
https://www.cikorea.net/bbs/view/qna?idx=8650&page;=319&hit;=not&view;_category=&lists;_style=&scroll;=5601.60009765625&page;_comment=2
제가 수정한코드는 .htaccess파일에서
RewriteRule ^(.*)$ /index.php/$1 [L] 를
RewriteRule ^(.*)$ /index.php?/$1 [L] 로 변경해서 해결했습니다.
from http://voidfunction-e.tistory.com/48 by ccl(A) rewrite - 2020-04-02 16:01:20