fixing redirects once and for all