I want to find a way of transposing into the Hanham Variation of the Philidor Defense, without a way for White to deviate. For example, in the normal move order, White may have the move 3. Bc4 or 3. Nc3, which I want to avoid. I have tried the Pirc defense, but it doesn't work. Is there any other opening which will transpose?
No. Black cannot reach the Hanham variation (e.g. the Philidor setup with Nd7, Nf6, e5 and sometimes c6) by force.
The modern move order to reach the Hanham variation, however, is 1. e4 d6! 2. d4 Nf6 3. Nc3 e5. This is black's best move order to reach the Hanham variation because white usually transposes to the Hanham variation with 4. Nf3.
Experienced white players usually don't avoid the Hanham with the above move order because the main alternative 4. dxe5!? lets black equalize easily as recent results have proven.