I read a lot of server errors of 500 questions related to the famous .htaccess file ... but I still have not found the answer to this error.
I have a folder that I used to test the .htaccess file.
=> http://localhost/xampp/example/
I copied the .htaccess file in the example folder and got a 500 server error
I checked in the error.log file and found this: .htaccess RewriteEngine not allowed here
But I changed all AllowOverride None to AllowOverride All in my httpd.conf file. I also uncommented the line LoadModule expires_module modules/mod_expires.so
error log says: ExpiresActive not allowed here
what is actually happening? ... how can i solve this error?
This is what I have in my .htaccess file ...
<ifModule mod_expires.c> ExpiresActive On ExpiresDefault "access plus 1 days" </ifModule>
welou source share