Automattic / Automattic/wp-super-cache

.htaccess directive Options -Indexes causing 500 Internal server error

Open
#868 0 comments 0 reactions 0 assignees View on GitHub
[Plugin] Super Cache bug
Dominant language
PHP
Stars
436
Forks
130
Avg merge
15h 11m
Merged PRs (30d)
10

Description

Hi, I am using WP Super Cache on many sites and sometimes it kills that website, because wp-content/cache/.htaccess contains "Options -Indexes" line ... and this directive is blocked in web hosting server config. When it is shared server, there is no possibility to change this server config. I know there are other caching modes than "expert" and "mod_rewrite" etc, but I really like this setting thanks to its performance.

It would be great to have some control over adding "Options -Indexes", or have some automatic check if it will cause server error ...

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing where wp-content/cache/.htaccess is generated for the expert and mod_rewrite caching modes, focusing on the Options -Indexes directive. Review the hosting-related behavior described in the issue; done means the directive can be controlled or safely avoided when it would cause a 500 error.

Written by the indexing model from the issue text.

Assessment

Tech stack
apache, php
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.