Welcome to WebmasterWorld Guest from 54.167.185.18

Forum Moderators: buckworks & webwork

Message Too Old, No Replies

sharing domain names.

sharing domain names accross servers??

   
6:50 pm on Nov 24, 2001 (gmt 0)

10+ Year Member



Hi all,

I wish to set up a virtual postcard service that I will host from my own server. My question is can I link to the relevant page on my server from another site but retain the domain name of the clients site. The effect would be that the user would not be aware of leaving the clients site. If this is possible could I do it multiple times on the one server for different clients?

I am quite new to setting up this kind of thing, but any advice or links would be greatly appreciated !

Cheers,
T.

8:11 pm on Nov 24, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The simplest method would be to have the page on the clients site frame a page on your site. Any other solution would be rather technical and beyond the abilities of your average webmaster.
1:16 pm on Nov 26, 2001 (gmt 0)

10+ Year Member



Thanks for your reply but I wasn't quite sure what you mean.

I think that you were suggesting that the page was put on the clients site to maintain the domain name. Thats fine, but could I then link to the php scripts and database on my server without any problems ??

Best. T.

4:07 am on Dec 3, 2001 (gmt 0)

10+ Year Member



Hi tony,
If your client's server is running php you could use the readfile() [php.net] function:

<?
echo @readfile("http://www.yourserver.com/directory/relevantfile.html");
?>

This won't load any graphics though, so you'll have to keep a copy of those on your server with the same file path / structure. You'll then end up with a url similar to: "http://www.client.com/directory/readfile.php" and of course the page you want shown.
Hope this is what you're after.

11:31 pm on Dec 3, 2001 (gmt 0)

10+ Year Member




Have the other sites create virtual domains which point to your server.

Such as:

postcards.otherdomain.com IN A (your IP)

then have your web server handle this virtual domain of theirs.