Add redirect module; patched to prevent redirect loop