当前位置: 动力学知识库 > 问答 > 编程问答 >

php - 500 Internal Server Error with Wamp server

问题描述:

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: