Verify redirects work on custom domain sites, add code comments

#4433