문제

I've created a web service using php, slim and mysql but when I try to access the urls it gives me "The server encountered an internal error or misconfiguration and was unable to complete your request."

When I check the log it gives me :

C:/wamp/www/task_manager/.htaccess: Invalid command '.htaccess', perhaps misspelled or defined by a module not included in the server configuration

I checked few things online and I can ensure you that rewrite_module is installed and activated (not commented in the http.config

does anyone know how to fix that? I ll attach the content of my .htaccess

.htaccess

RewriteEngine On 

RewriteCond %{REQUEST_FILENAME} !-f 

RewriteRule ^(.*)$ %{ENV:BASE}index.php [QSA,L]
도움이 되었습니까?

해결책

Remove the line .htaccess from your .htaccess file.

다른 팁

if you install new wamp on your system, and you are using htaccess in your project to rewrite some urls first you need:

Click on wamp icon and Go to "Apache" Then Click on "Apache Modules"

and make sure your RE WRITE extension should be checked.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top