내 사이트 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 파일이 있습니다.
서버 오류 로그를 확인하여 현재 진행중인 작업을 확인하십시오. – JimL
내 코드에 대해 잘 모르겠습니다. 이것은 나의 첫 번째 코드이다. .htaccess 파일을 제거하면 사이트가 정상적으로 실행됩니다. –