Multihoming: Easy answer?

Results 1 to 3 of 3

Thread: Multihoming: Easy answer?

  1. #1
    Join Date
    Dec 1969
    Posts
    113

    Default Multihoming: Easy answer?

    I&#039ve just registered three TLDs with .COM being the prime Domain, .NET & .ORG are &#039parked&#039 on my .COM account. I want to be able to check what URL the browser was actually looking for and redirect them automatically to a different site (read: subdirectory) when ever they come looking for the .NET or .ORG site. Anyone have a simple answer?

  2. #2
    Rod Dreyer Guest

    Default RE: Multihoming: Easy answer?

    I have the same question. I have been successful with this simple check on our intranet. I have not tested on internet since I don&#039t have a site with multiple domain names. Can you check this logic on the internet and let me know if it works ok.<BR><BR>Rod Dreyer<BR>rdreyer@homewireless.com<BR><BR>&#060;%< BR>Dim host<BR>host=lcase(Request.ServerVariables("SERVER _NAME"))<BR><BR>if host="wwwtest1" then<BR> Response.redirect"http://wwwtest/site1"<BR>Elseif host="wwwtest2" then<BR> Response.redirect"http://wwwtest/site2"<BR>End if<BR>&#037;&#062;

  3. #3
    Join Date
    Dec 1969
    Posts
    113

    Default RE: Multihoming: Easy answer?

    Yeah that should work with a modification... I found this on ActiveServerPages.com:<BR><BR>Make sure when you test for &#039host&#039 that it contains the TLD (.com, .net, .org) otherwise you should search inside the string for what you are looking for. In my case I&#039m trying to diferentiate between TLDs and CASE works well against the "HOST_HOST" service variable.<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •