Made redirects work