Welcome to WebmasterWorld Guest from 54.227.231.144

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

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:

[mediaprinting.interfirm.com...]

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)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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.