Possible fix for 404 and main page redirects.