Issue #2970132 by neerajsingh, webflo: .ht.router.php causes a redirect loop when invoked from parent directory (cherry picked from commit 4ed1bcf6)