Replace special on handleSpecialUrl

Hi, i use the following php example for redirect a regular web address to my web app including the query string

its work fine

<?php function handle_url( $url ) { $request_response = file_get_contents("".$url); echo "Response:".$request_response; } $request = $_SERVER['REQUEST_URI']; handle_url($request); ?>

but now i need to include the body content

how i do this?

better do a redirect via apache rewrite rules.

i try in the .htaccess but i still receive the body empty. Can you have a example?