Looking for the typed url

admin

Administrator
Staff member
Hello,<br />
<br />
My web site have two dns names.<br />
I need to redirect the users that typed one dns to one page on my web site and these who type the second dns to other page.<br />
The two DNS are pointing to the same web site.<br />
<br />
How could I get the typed url from the html?<br />
My server run also PHP (it could be php script).<br />
<br />
for example:<br />
<br />
1st DNS called <!-- w --><a class="postlink" href="http://www.x.com">www.x.com</a><!-- w --> poing 10.10.10.10<br />
2nd DNS called <!-- w --><a class="postlink" href="http://www.y.com">www.y.com</a><!-- w --> point 10.10.10.10<br />
<br />
in the <!-- m --><a class="postlink" href="http://10.10.10.10/index.html">http://10.10.10.10/index.html</a><!-- m --> I want to redirect to page 'X' these who got from <!-- w --><a class="postlink" href="http://www.x.com">www.x.com</a><!-- w --> and to page 'Y' these who got from <!-- w --><a class="postlink" href="http://www.y.com">www.y.com</a><!-- w --><br />
<br />
Thanks in advanced.<!--content-->Please do not crosspost in our forums. Once is enough. Anyone who wishes to reply can do so in the general forum: <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/showthread.php?s=&postid=188407#post188407">http://www.webdeveloper.com/forum/showt ... post188407</a><!-- m --><!--content-->
 
Back
Top