homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

Serve content for one domain name under another
using a proxy

 9:10 am on Aug 8, 2011 (gmt 0)

Not sure if this is the right board but wondering if server side scripting holds a solution?

We have a website [mediaprintingnow.com...] which is a reseller account for the below site:


Is there anyway to have the pages in [mediaprinting.interfirm.com...] come under our [mediaprintingnow.com...] URL.

I know iframes might do it but thats bad right? is there something server side that will load pages from another host under my URL. This is legal, as we want to present our reseller account under our URL. Thank you



 10:04 am on Aug 8, 2011 (gmt 0)

Solution depends on whether the files are on the same server or a different server.

In any case, you'll need either an internal rewrite or an external proxy pass-through.


 10:44 am on Aug 8, 2011 (gmt 0)

The files are on a different server but we want them to arrear under our URL on our server.

What is the complexity in completing this? can you point me in the direction on how to go about this?


 12:43 pm on Aug 8, 2011 (gmt 0)

You'll need a proxy passthrough. Someone requests a URL containing your hostname, and your server will then pull the content from elsewhere and then serve it to the user. The user will not visit the other site at all. They will transact only with your site.

There's many prior threads with example code.

One problem that arises is as soon as the user clicks any links on the page they will be requesting that page from the real site. To stop that happening, you'll have to change the links on the pages before you serve the page to the customer.

Another problem is that your site and the real site will now be serving Duplicate Content. One of the sites is going to fail to rank, as Google will not want to show both sites in the SERPs.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved