Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Need Help with Script


  • Please log in to reply
1 reply to this topic

#1 radiumlight

radiumlight

  • Members
  • 32 posts
  • OFFLINE
  •  
  • Location:Arizona
  • Local time:02:43 AM

Posted 24 February 2005 - 02:22 PM

Hello,

I've recently found a redirection script, but I don't know how to use it. I've made several attempts at what I think the "variables" should be but can't make it work. I put the script in between the Head tags but have no direction as to where it does belong. Script below:

<script LANGUAGE=vbscript RUNAT=Server>
urlhost = Request.ServerVariables("HTTP_HOST")
select case urlhost
case "www.firstsite.com"
Response.Redirect("first/index.htm")
case "firstsite.com"
Response.Redirect("first/index.htm")
case "secondsite.com"
Response.Redirect("secondsite/index.htm")
case "www.secondsite.com"
Response.Redirect("secondsite/index.htm")
case "www.thirdsite.com"
Response.Redirect("thirdsite/index.htm")
case "thirdsite.com"
Response.Redirect("thirdsite/index.htm")
case else
Response.Redirect("myindex.asp")
end select
</SCRIPT>

Script designed so that different domain names can point to the one purchased domain and not have to buy several domains. I'm trying to direct to "free host space", maybe that's the problem. I also use .html not .htm don't know if that's an issue either. And I have no experience with .asp. If someone could fill in the parenthesis above for examples, I could probably figure it out from there.

Thanks,
Radiumlight
"And in the end, it's not the years in your life that count. It's the life in your years."
Abraham Lincoln

BC AdBot (Login to Remove)

 


m

#2 radiumlight

radiumlight
  • Topic Starter

  • Members
  • 32 posts
  • OFFLINE
  •  
  • Location:Arizona
  • Local time:02:43 AM

Posted 24 February 2005 - 07:11 PM

Hello again,

Never mind this topic please. It's more difficult than I want to tackle. Thanks anyway.

Moderator, please delete?

Thanks,
Radiumlight
"And in the end, it's not the years in your life that count. It's the life in your years."
Abraham Lincoln




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users