Mailing List Archive

[Bug 59354] DirectoryIndex + FallbackResource
https://bz.apache.org/bugzilla/show_bug.cgi?id=59354

--- Comment #3 from Rimas Kudelis <rimas@kudelis.lt> ---
I've noticed a similar problem in Apache 2.4.52 on Ubuntu 22.04.

A configuration like this:

```
DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm
FallbackResource /index.php
```

works as expected: opening `/wp-admin/` launches `/wp-admin/index.php` (which
exists).

However, if `DirectoryIndex` file names are rearranged and `index.php` is no
longer first in the list:

```
DirectoryIndex index.html index.php index.cgi index.pl index.xhtml index.htm
FallbackResource /index.php
```

opening `/wp-admin/` disregards the existing `/wp-admin/index.php` and launches
`/index.php` instead, which (in case of WordPress) causes a redirection loop in
which the page keeps redirecting to itself.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org