Solving an Apache Mellon redirect loop mystery