2013-08-23 1 views
0

나는이 htaccess로 파일입력 된 파일을 지정된 오류

RewriteEngine On 
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] 
RewriteRule ^(.*)$ http://%1/$1 [R=301,L] 
RewriteCond $1 !^(index\.php|resources|robots\.txt) 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ index.php?/$1 [L] 

내가 아니 입력 파일이 오류가 남아 있지 않습니다 을 얻고이 없습니다. 나는 ** RewriteRule의 (^. ) $의 index.php를 같은 스택 오버플로 모든 이전의 제안을 시도?/$ 1 [S, L] * 등

답변

0

먼저이 확인 도와주세요 mod_rewrite를 =

다음 시도 (아파치 서버)에 : -

Options +FollowSymlinks 
RewriteEngine on 
RewriteBase/

AddType application/x-httpd-php .asp .py .pl 

RewriteCond %{REQUEST_URI} !(\.|/$) 
RewriteRule (.*) http://example.com/$1/ [R=301,L] 
RewriteRule ^$ index.php [NC,L] 
+0

내가 사용한은 phpinfo(). 결과 페이지에서 ** mod_rewrite **와 같은 단어를 찾을 수 없습니다. godaddy에게 전화하여이 모듈을 설치하도록 요청해야한다고 제안하십시오. – mayank

관련 문제