headers fix + redirects rules