Computer Help and Spyware Removal Computer Help and Spyware Removal Computer Help and Spyware Removal Computer Help Forums Windows Startup Programs Database Spyware and Malware Removal Guides Computer Tutorials Uninstall Database File Database Computer Glossary Computer Resources
 

Welcome Guest ( Log In | Click here to Register a free account now! )



Register a free account to unlock additional features at BleepingComputer.com
Welcome to Bleeping Computer, 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.

 
Reply to this topicStart new topic
> Need Help with Script, Redirect script - don't understand how
radiumlight
post Feb 24 2005, 02:22 PM
Post #1


Member
**

Group: Members
Posts: 32
Joined: 13-January 05
From: Arizona
Member No.: 9,480



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
Go to the top of the page
 
+Quote Post
radiumlight
post Feb 24 2005, 07:11 PM
Post #2


Member
**

Group: Members
Posts: 32
Joined: 13-January 05
From: Arizona
Member No.: 9,480



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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 9th January 2009 - 03:30 AM


Advertise   |   About Us   |   Terms of Use   |   Privacy Policy   |   Contact Us   |   Site Map   |   Chat   |   Tutorials   |   Uninstall List
Discussion Forums   |   The Computer Glossary   |   Resources   |   RSS Feeds   |   Startups   |   The File Database   |   Malware Removal Guides

© 2003-2008 All Rights Reserved Bleeping Computer LLC.