2011-01-03 7 views
1

내 .htaccess 파일은 내 프레임 워크 [Fat Free Frameowkr]가 처리하는 모든 내용을 내 index.php 페이지로 보내야합니다..htaccess 및 mod_rewrite의 문제

그러나 http://www.site.com/으로 가면 작동합니다. http://www.site.com/about에 가면 404 오류가 발생합니다.

아이디어가 있으십니까?

# Enable rewrite engine and route requests to framework 
RewriteEngine On 
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-l 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule .* index.php [L,QSA] 

# Disable ETags 
Header Unset ETag 
FileETag none 

# Default expires header if none specified (stay in browser cache for 7 days) 
<IfModule mod_expires.c> 
ExpiresActive On 
ExpiresDefault A604800 
</IfModule> 
+0

추가 디버깅이 필요합니다. (['RewriteLogLevel'] (http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriteloglevel) 참조)). – Gumbo

+0

'rewrite.log'를 설정했지만 높은 디버그 레벨을 사용하더라도 오류가 발생하지 않습니다. 그냥 404. – ian

+0

해결책을 찾았습니까? –

답변

0

당신의 .htaccess 최우선 허용 한 경우의 .htaccess가 (그래서 단지의 경우 검사에 대해 htaccess로 를 통해 요청을 잡을 것을 구분하는

# Enable rewrite engine and route requests to framework 
RewriteEngine On 
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-l 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^/(.*)$ index.php/$1 [L,QSA] 

HTTP 404 링크 바로이 부분을보십시오 httpd conf, AllowOverride)