Optimize root redirect