Welcome Guest ( Log In | Click here to Register a free account now! )
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.![]() ![]() |
Feb 24 2005, 02:22 PM
Post
#1
|
|
|
Member ![]() ![]() Group: Members Posts: 32 Joined: 13-January 05 From: Arizona Member No.: 9,480 |
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 |
|
|
|
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 |
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 9th January 2009 - 03:30 AM |