If the error occurs for every single type of instruction you put in the file (that is, caching, FilesMatch
, ErrorDocument
, etc), there are two possible options that I can think of right now:
The encoding of your
.htaccess
file is not compatible with the server you're running. Try converting it to ANSI, and then try again (Apache does not support Byte Order Marks, so you'd need to save it to ANSI, or UTF-8, without the BOM). If that does not work:AllowOverride
is not set correctly, or not at all. If you have access to the Virtual Host/Directory configuration, you'll need to enable it by adding the lineAllowOverride All
in the<Directory>
container.