Avoid redirect loop if no index is provided