Finally fixed most of the redirect issues

Still a problem with going from pHome to eHome or vice versa, gets stuck
in a loop I have no idea why, and am at my wit's end.