Resolve redirect loop and add favicon.