Implement redirects, called right before hook init().