How would I do this in PHP?
Server.Transfer("/index.aspx")
(add ';' for C#)
EDIT:
It is important to have the URL remain the same as before; you know, for Google. In my situation, we have a bunch of .html files that we want to transfer and it is important to the client that the address bar doesn't change.
As far as I know PHP doesn't have a real transfer ability, but you could get the exact same effect by using include() or require() like so:
require_once("/index.aspx");
The easiest way is to use a header redirect.
header('Location: /index.php');
Edit: Or you could just include the file and exit if you don't want to use HTTP headers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With