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

This reverts commit 19477dd4b953e5e1e7d54af3d872b63305769be6.