안녕하세요,
index.php가 제거되지 않아서 .htaccess 관련 질문 좀 드리고 싶습니다.
현재 제 디렉토리는,
/
/applications
/app1
/app2
/system
...
입니다.
/ 에 있는 .htaccess 내용은 아래와 같이 작성했습니다. (수정)
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond $1 !^(index\.php|images|captcha|data|assets|uploads|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /applications/app1/index.php/$1 [L]
</IfModule>
무엇이 문제일까요ㅠㅠ
<IfModule mod_rewrite.c>
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]
</IfModule>
한번 이걸로 넣어보시고... 서버 리부팅 한번 해 보세요.
index.php는 각 어플리케이션별로 넣어놨습니다.
/applications/app1/index.php, /applications/app2/index.php
해결됐습니다...허무하게 ;;;
익스플로러 임시파일 삭제하니까 제대로 돌아가네요....ㅠㅠ
처음 질문에 적었던 htaccess파일 내용이 맞았습니다.
모두 답변 감사합니다~~
리라이트 모드를 활성화 하지 않으시면 .htaccess 파일이 적용되지 않습니다.
apache mod_rewrite 로 검색해 보세요