2014-06-05 4 views
0

다시 쓰기 규칙에서 특정 파일을 제외하는 데 문제가 있습니다. 나는 브라우저를 통해이 파일에 액세스하려고 해요 때 나는를받을 - 당신은 내가이 포럼에서 발견 코드를 넣어 마지막 줄에서 볼 수 있듯이이 작동하지 않습니다 뷔아,다시 쓰기 htaccess에서 파일 제외

AuthName "Write a password" 
AuthType Basic 
AuthUserFile .htpasswd 
Require valid-user 
index.php 

Options -MultiViews 

RewriteEngine On 

Options -Indexes 

RewriteBase /php-mvc/ 


RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-l 

RewriteRule ^(.+)$ index.php?url=$1 [QSA,L] 

RewriteCond %{REQUEST_URI} !^/application/includes/addremove\.php$ [NC] 

: 내 htaccess로 확인하시기 바랍니다 403 오류.

답변

2

당신은

명백한
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L] 
+0

... 감사 @Pvb 전에

지난
RewriteCond %{REQUEST_URI} !^/application/includes/addremove\.php$ [NC] 

에있다! – kacper

관련 문제