Quick fix would just be to comment out that block of code. It starts at line 149 of showflat.inc.php with this comment:

// This bit specifically handles redirects from old imports

It ends at line 198 with:

// ENd of import redirect code