the end goal is to redirect him to the original site ,, like iframe he is openning normal webpage and u act ur self like a router , to redirect him to his original request thats all
but in this technique he will be redirect after been exploited to the original link path he clicked on ??
In the PHP file, add the following code right after the PHP meterpreter has been initialized:
header("Location:
http://whatever.tld");
Then in the Meterpreter, you make sure it migrates to another file first by writing your own script and then make it call itself again on perhaps another listening process (multi/handler).
I have no exact way to do this, as I've never done but that is how you could do it.
All you gotta do, is to learn some basic Meterpreter scripting, and some very basic PHP so you understand how it functions.
Preferably you research this first on your own.
Remember, this forum is for educational and ethical purposes only.