Don't remove header *before* checking the new url location

Gasp$^%!