The challenge is easy, just make World War 1 a war that is just like all the other wars before it. At the same time, I want military technology to advance, and for infantry units to still be organized into lines. (Although variations and modernizations on 19th century tactics are perfectly fine.)
Just a little thought experiment to see an alternate path for what the world could be like.