2014-10-18 3 views
0

내 사이트 URL은 http://localhost/Apps/index.php입니다. 그것은 .htaccess 파일없이 잘 작동하지만 내가 .htaccess를 추가 할 때, 나는 다음과 같은 오류가 나타납니다.htaccess 파일로 인해 내부 서버 오류가 발생합니다.

[18-Oct-2014 10:32:34 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_ldap.dll' - The specified module could not be found. in Unknown on line 0

:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

.htaccess 파일의 코드가

RewriteEngine On 

RewriteCond %{REQUEST_FILENAME} !-d 

RewriteCond %{REQUEST_FILENAME} !-f 

RewriteCond %{REQUEST_FILENAME} !-l 

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

PHP 오류 로그입니다

Apache error.log :

[Sat Oct 18 06:51:11.609106 2014] [core:alert] [pid 3068:tid 960] [client ::1:3539] C:/wamp/www/Apps/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

WAMP 서버를 사용하고 있습니다. 내 파일 디렉토리 : C : \ wamp \ www \ Apps \ index.php Apps 폴더에도 .htaccess 파일이 있습니다.

+0

서버 오류 로그를 확인하여 현재 진행중인 작업을 확인하십시오. – JimL

+0

내 코드에 대해 잘 모르겠습니다. 이것은 나의 첫 번째 코드이다. .htaccess 파일을 제거하면 사이트가 정상적으로 실행됩니다. –

답변

0

mod_reqrite이 활성화 되었습니까? httpd.conf에 없으면 다음을 추가 또는 수정하여 수정하십시오. LoadModule rewrite_module modules/mod_rewrite.so 그렇지 않으면 로그를 확인하여 게시물에 추가하십시오.

+0

여기에 오류 로그가 있습니다 : php_error.log : [18-Oct-2014 10:32:34 UTC] PHP 경고 : PHP 시작 : 동적 라이브러리 'c : /wamp/bin/php/php5.5.12를로드 할 수 없습니다. /ext/php_ldap.dll '- 지정된 모듈을 찾을 수 없습니다. 라인에서 알 apache_error.log이다 : 코어 : 경고] PID 3068 : TID 960] [클라이언트 : 1 : 3539] C :/ [: 11.609106 51 2,014 06 토 시월 18] wamp/www/Apps/.htaccess : 명령 'RewriteEngine'이 잘못되었습니다. 잘못 입력했거나 서버 구성에 포함되지 않은 모듈에 의해 정의되었습니다. 시간은 중요하지 않습니다. 현재 오류입니다. 덕분에 . –

+0

설치 xampp;) – Cr41s3

+0

[토요일 10 월 18 일 06 : 51 : 11.609106 2014] [코어 : 경고] [pid 3068 : tid 960] [client :: 1 : 3539] C : /wamp/www/Apps/.htaccess : Invalid 'RewriteEngine'명령 (서버 구성에 포함되지 않은 모듈에 의해 맞춤법이 틀리거나 정의 됨) –

관련 문제