Options not allowed here - 500 error

With some server configurations you may see an error message like one of the following:

/wp-content/cache/wp-rocket/.htaccess: Options not allowed here

Cannot serve directory... No matching DirectoryIndex and server-generated directory index forbidden by Options directive

For security purposes, WP Rocket adds an htaccess file and empty index file in the cache/wp-rocket folder, to prevent anyone browsing the files. 

The htaccess file contains the following:

<IfModule mod_autoindex.c>
Options -Indexes
</IfModule>

Therefore the errors above could happen because your host or server admin is disallowing Options -Indexes within an htaccess file.

This is not fixable by WP Rocket, but you should contact your web host or server admin and they can fix it for you.

A similar options not allowed error can be triggered in relation to other directives. Check this article for more details.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.