Skip to content

fix: leave the content folders to the site's 404 when redirecting to a directory index - #522

Merged
ogorzalka merged 1 commit into
developfrom
fix/directory-redirect-content-folders
Oct 21, 2026
Merged

ogorzalka merged 1 commit into
developfrom
fix/directory-redirect-content-folders

Conversation

@ogorzalka

Copy link
Copy Markdown
Member

Follow-up to #521, found by comparing the HTTP answers of a Linux DDEV project (nginx-fpm and apache-fpm, 18 URLs) before and after it.

Under Apache, /cms/wp-content/ and /cms/wp-content/plugins/ answered 404 (the skeleton's .htaccess sends the content folders to the front controller on purpose, so a visitor is not told they exist); #521's redirect to a directory's index.php turned them into a 302 to .../index.php. The redirect now skips /content/ and /cms/wp-content/.

After this change the 18 URLs answer exactly as before #521 on both servers; Valet and Herd on macOS keep /cms/wp-admin/ working.

@ogorzalka
ogorzalka merged commit 33faf7d into develop Oct 21, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant