Revert "removed redirect loop on index, auth on publish"

This reverts commit b92eb66a41d29949c276d20d555081991c070c70.