简体   繁体   中英

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]

从 .htaccess 文件中删除.htaccess行。

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM