Wireing issues with lights

I have a 420 fa es 4×4 2009 model and my rear brake switch has to be made before headlights will work. In others words the brake light has to be on before the headlights will work. I by passed the rear brake switch and headlights work and brake light shines bright. When i untwist the wires where the circuit isnt made my headlights and brake light go out. Any suggestion on a fix?