.htaccess does not work on Windows

I have Apache 2.2 installed on my Windows machine and it seems the problem is with .htaccess.

 I included `mod_rewrite` in the file` httpd.conf` and wrote some conditions in my .htaccess, but nothing works. I tried to insert garbage into it to see if it would return an Internal server error, but even that would not work. What could be the problem?

Could the problem be that my Apache is located in the folder "C: \ Program Files \ Apache Software Foundation" and the root of my server is "C: \ Users \ Grega \ Server"? I cannot find anything that points to .htaccess in httpd.conf

+5
source share
2 answers

, AllowOverride None C:\Users\Grega\Server. htaccess . AllowOverride All , , AllowOverride FileInfo.

+9

, AllowOverride. C:\Users\Grega\Server. htaccess . AllowOverride All , , File File AllowOverride.

. . \wamp\bin\apache\apache2.4.9\conf\httpd.conf

<IfModule dir_module> DirectoryIndex first_page.html if_not_found.html </IfModule>

first_page.html , .

( , .)

-1

All Articles