Replace special on handleSpecialUrl

Hi, i use the following php example for redirect a regular web address to my web app http://127.0.0.1:8090/special/ including the query string

its work fine

<?php function handle_url( $url ) { $request_response = file_get_contents("http://127.0.0.1:8090/special/".$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?