Htaccess IfModule Conditional Failure

I have a basic .htaccess file. If I leave it blank, the page will load correctly. If I have a conditional statement (for example: :)

<IfModule mod_filter.c>
    #Intentionally left blank
</IfModule>

I get a 500 error.

So, even though mod_filter exists and loads, it dies. Although there is nothing in the IfModule instruction.

It is almost as if the operator <IfModule>himself is not working.

This is on a 32-bit WAMP on Windows.

I have other sites working locally that have full htaccess files and they work, but this one just won't play!

Has anyone seen this before ?!

+4
source share
3 answers

This was due to a damaged file. Re-create the file.

+1
source

mod_filter.c:)

+3

, , mod_filter.c

<IfModule mod_filter.c>
#Intentionally left blank
</IfModule>
+2

All Articles