logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in  RSS Apache Lounge  


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.


Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: .htaccess not taking effect even with AllowOverride All
Author
benelaci



Joined: 22 Apr 2022
Posts: 1

PostPosted: Thu 30 Jun '22 15:58    Post subject: .htaccess not taking effect even with AllowOverride All Reply with quote

I had the above problem recently, and I'd like to share the solution, it should be a huge help for someone:

I'm using Apache 2.4 on Windows 10.

Nothing in the .htaccess file was working, although the necessary stuff in c:\Apache24\conf\httpd.conf were set:

Code:
Define SRVROOT "c:/Apache24"

DocumentRoot "${SRVROOT}/htdocs"

<Directory "${SRVROOT}/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

Code:
LoadModule rewrite_module modules/mod_rewrite.so


Solution

My Apache started to deteriorate, at a point it didn't even execute .php files.*
In my final despair I opened the Windows task manager > Services, and restarted Apache. Not only did Apache parse the .php files then, but the .htaccess problem went away too. Normal command line Apache restart never worked. This is some mysterious stuff.

* (There was a short while, when I used the original httpd.conf file, which didn't contain the php settings, then I moved back to the proper httpd.conf file very soon. From what it seems, this is what took effect 5 days later. I know this sounds pretty stupid, but that's the best explanation.)
Back to top


Reply to topic   Topic: .htaccess not taking effect even with AllowOverride All View previous topic :: View next topic
Post new topic   Forum Index -> Apache