Redirect from one host to another

I’m wondering if I can host one folder on a different host. my case is as follows:
client has a running website at host A. I want to host his blog for him on host be.
The directory for the blog will be www.XXXXX.com/blog.

Is there a way to redirect the blog from his host to mine?

thx

tol,

Yes, if you want to keep the original domain name at EXAMPLE.COM, not your (hosting) domain name. Otherwise, merely redirect and be done with it (the page labeling can show that it’s still his site, not yours and, without links from your DocumentRoot, people will only arrive at your OTHER.COM/blog directory via the link from EXAMPLE.COM.

Regards,

DK

tol,

If you really want to do without the frames you can also setup Apache as a reverse proxy using mod_proxy.

Two things to take into account:

  1. A request to /blog on your website makes your server download it from the other host, and then send it to the end user. Meaning you will have to pay for the bandwith of the downloading and sending the content to the user, which is twice as much as the actual traffic.
  2. Take this notice in the manual seriously
    Do not enable proxying with ProxyRequests until you have secured your server. Open proxy servers are dangerous both to your network and to the Internet at large.

In my opinion this is a really bad solution, but I just want to show that you can do it if you want.
Use at your own risk/discretion.

Sorry for not being completly clear. this is supposed to be the same domain.
the client has a website on one host in the address www.sitepoint.com and I want to host the blog for him at www.sitepoint.com/blog.

I want the blog directory to point to my server. are frames the only way here?

tol,

I don’t fully understand:

  1. He has domainA on a DIFFERENT host?

  2. You have domainB elsewhere?

  3. You want to allow him to redirect from domainA/blog to domainB/blog? Is it supposed to show that it’s still at domainA/blog?

Okay, you can redirect from domainA to domainB using the same mod_rewrite (or mod_alias) directives you’d use to redirect within domainA. HOWEVER, when using scripts at domainB, it WILL be displayed as being hosted by domainB (this is a SECURITY issue which I endorse). If you REALLY need to host the blog on domainB but retain the address as domainA, then you must use a frame for the domainB script at domainA.

NOTE: This is a “trick” used by unscrupulous webmasters and is considered “bad form” as it is normally used to “pirate” scripts from others. In your situation, this is desired by both parties so there is no legal problem.

Regards,

DK