works except with images/redirects