2011-10-20 2 views
0

안녕하세요 나는이 CI2 안쪽이 htaccess로이 구조mod_rewrite를 변화

http://localhost/ci2 

RewriteEngine on 
RewriteRule ^$ /ci2/index.php [L] 
RewriteCond $1 !^(index\.php|resource|files|system|user_guide|robots\.txt|favicon\.ico) 
RewriteRule ^(.*)$ /ci2/index.php/$1 [L] 

지금은 하위 디렉토리

http://localhost/folder/ci2 

I로 파일을 이동하려면 같은 .htaccess 파일을 사용하고 있지 않다는 것을 깨달았습니까 그래서 수정이 필요합니까?

답변

0

당신은 단지로 변경해야한다 : 지금

RewriteEngine on 
RewriteCond $1 !^(index\.php|resource|files|system|user_guide|robots\.txt|favicon\.ico) 
RewriteRule ^folder/ci2/(.*)$ folder/ci2/index.php [L] 
+0

정렬 내 서버에서 테스트. –