Re: domain name pointing to a page




"Steve" <googlespam@xxxxxxxxxxxxx> a écrit dans le message de news: 1116943063.700592.237350@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

It sounds to me like you imagine that a request can be plucked out of the ether before it reaches a host and redirected to somewhere of your choosing. Your clients must first buy the domain "clientsite.com" and then set up the redirect as suggested using any of the usual methods, including the specific one provided by Alvaro.

When someone types the URL "http://www.clientsite.com"; into their
browser address bar, the browser contacts their ISP and asks for the IP
address of the host "www.clientsite.com". The ISP knows the IP address
because the domain name has been bought and registered and so exists in
the Domain Naming System. Back comes the reply 216.37.46.27 and the
browser then sends a request to that host. The host receives the
request and sends back the response. If the response is a redirect
you'll get the effect you want.

I assume you specified "client=455" because that is meaningful to the
script executing at www.mysite.com. You therefore know that the request
came originally from www.clientsite.com because you will set things up
so www.clientsite.com is the only host that redirects to
www.mysite.com?client=455. Some other client www.randomsite.com will
forward to (for instance) www.mysite.com?client=123

Sounds like I didn't expain well the whole thing:

www.mysite.com and www.clientsite.com both point to my website (www.mysite.com)
Now, when any person type one or the other URL, then the result is my website.
What I want to achieve, is that when he types www.clientsite.com, then I redirect to the client=455.


So in my index.php, I'd like to know wich URL was typed (mysite.com or clientsite.com) and redirect if the URL is clientsite.com.
Sounds simple, and many website do it. I'd like to know how.


Bob


.



Relevant Pages

  • Re: Getting "ICMP Host redirect from gateway" response
    ... I tried and succeeded in getting a REDIRECT response, ... I added a route with 192.168.0.10 as a gateway to a local host ...
    (comp.os.linux.networking)
  • Re: domain name pointing to a page
    ... Your clients must first buy the domain "clientsite.com" and then set up the redirect as suggested using any of the usual methods, including the specific one provided by Alvaro. ... the browser contacts their ISP and asks for the IP address of the host "www.clientsite.com". ... Back comes the reply 216.37.46.27 and the browser then sends a request to that host. ...
    (comp.lang.php)
  • Re: ICMP redirects are baad mkay?
    ... The requirements list was gathered from RFC 1122, ... If a host has to behave robustly under ... >Who says that an ICMP Redirect cannot replace an ICMP Redirect? ...
    (comp.security.firewalls)
  • Re: Getting "ICMP Host redirect from gateway" response
    ... The ICMP Redirect message is generated to inform a local host that it ... should use a different next hop router for certain traffic. ... but send it to the default gateway and expect it to ...
    (comp.os.linux.networking)
  • Re: Feedburner Redirect?
    ... > to "host your own" feed with your URL. ... > I assume that they will do this with a redirect. ... I must warn you that even when done properly, this can lose you ranks. ... Roy S. Schestowitz ...
    (alt.internet.search-engines)