Can you load an apache module from the .htaccess file?

apache

Solution

The `LoadModule` directive can only be used in server config. Not vhost config and not in an htaccess file.

Specifically, does "ExpiresActive On" load the mod_expires module?

No, if you try to use a module that's not loaded, you'll get a 500 internal server error.

Problem

Like, can I modify the .htaccess file to load an apache module? Specifically, does "ExpiresActive On" load the mod_expires module?

Original source