You are obviously going from a split two-plug harness system to a single plug harness system when converting from 2002 to 2006.
Can you source male and female harness connectors? Meaning, can you get a plug connector for a 9004/9007 bulb? Can you get the end for the plug into the 2006 headlamp module assembly?
You could make a "jumper cable" of sorts to go from 2002 to 2006 without cutting your existing OEM harness.