Green’s Dictionary of Slang

Halifax n.

a euph. for SE hell.

[US]‘Andrew Barton’ Disappointment II iv: If ever I blow you, blast me! If one word goes through my head rails, the devil blow me to Halifax.
[Aus]Bulletin (Sydney) 19 Mar. 9/1: The plucky offer of 100 of our ‘painted soldiers;’ (vide Sir H. P.) to blow the Boers to Halifax, and chop what are left Into coookshop hash [etc].
[US] in DARE n.p.: I’ll jist be diddle-de-diddle-de-daggon if I don’t wish the dern corn wuz in Halifax and him with it! [HDAS].
[NZ]N.Z. Truth 8 Feb. 6/3: The men or alleged men, were kicked from there to Halifax.
[Aus]S .J. Baker Aus. Vulgarisms [t/s] 6: Hell: hades, Halifax, heck, hellishun, hangashun, help (and, possibly, heavens).
[US]H. Rawson Dict. of Invective (1991) 190: Such euphemisms as blazes, Halifax, heck, Jesse, Sam Hill, and thunder.

In phrases

go to Halifax (v.)

to go the long way round.

[US]G.D. Chase ‘Cape Cod Dialect’ in DN II:v 298: Halifax, n. In expression ‘go way to Halifax,’ to go out of the way, or an unnecessarily long distance.

In exclamations

go to Halifax!

a euph. for go to hell! under hell n.

[UK]Depositions from Castle of York (1861) 165: Sirrah! goe to Hallifax. And come, I am as good a man as thy father.
[UK]W. Stamer Life of Adventure II 295: [A]s to what people thought, they might go to Halifax for all I cared.
[UK]N&Q Ser. 5 IV 66: Go to Halifax. This expression is sometimes used in the United States as a mild substitute for a direction to go to a place not to be named to ears polite .