Title: copy page with HTTP request
Last modified: August 20, 2016

---

# copy page with HTTP request

 *  [alemao85](https://wordpress.org/support/users/alemao85/)
 * (@alemao85)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/copy-page-with-http-request/)
 * Hello,
    I want to make a mirror of a website using wordpress. Withour wordpress
   I just use
 * $homepage = file_get_contents(‘www.domain.com’.$_SERVER[‘REQUEST_URI’]);
    echo
   $hompage;
 * and I have a fully working mirror.
 * On wordpress I use:
 * $url = ‘[http://www.domain.com&#8217](http://www.domain.com&#8217);;
    $request
   = new WP_Http; $result = $request->request( $url ); $json = $result[‘body’]; 
   echo $json;
 * I can take a new domain and make the mirror availalbe under it
 * which works fine. But:
 * after file_get_contens I am able to use newdomain.com/subpage to go to a subpage.
   In WP that does not work.
 * Has anyone help? I hope I mde my problem clrar :/
 * Thanks!

The topic ‘copy page with HTTP request’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [alemao85](https://wordpress.org/support/users/alemao85/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/copy-page-with-http-request/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
