Solved

VB Redirect Script Please?

Posted on 2008-10-27
4
225 Views
Last Modified: 2008-12-14
I am using a very basic HTML redirect script right now for OWA access, and I am looking for something a little nicer.  Right now when you hit the redirect script it stops for a second or two on a white page, then loads the redirected page.  I would like to find a script that adjusted the URL as soon as the script ran.  Any ideas?  I will attache a code snipet of what I am using now.
<html>

<head>

<title>HTML Redirection to https:</title>

<META HTTP-EQUIV="Refresh"

CONTENT="1; URL=https://domainname.com/exchange">

</head>

<body>

This page is attempting to redirect you to <a href="https://domainname.com/exchange">https://domainname.com/exchange</a><br>

If you are not redirected within a few seconds, please click the link above to access The CompanyName Outlook Web Access Site.

</body></html>

Open in new window

0
Comment
Question by:tarkmyler
4 Comments
 
LVL 39

Accepted Solution

by:
BrandonGalderisi earned 400 total points
ID: 22817948
You could change your default page from index.htm (or .html) to index.asp and use this.


<%

response.redirect("https://domainname.com/exchange")

%>

Open in new window

0
 
LVL 82

Assisted Solution

by:hielo
hielo earned 100 total points
ID: 22817950
change the 1 to a zero:

<html>
<head>
<title>HTML Redirection to https:</title>
<META HTTP-EQUIV="Refresh"
CONTENT="0; URL=https://domainname.com/exchange">
</head>
<body>
This page is attempting to redirect you to <a href="https://domainname.com/exchange">https://domainname.com/exchange</a><br>
If you are not redirected within a few seconds, please click the link above to access The CompanyName Outlook Web Access Site.
</body></html>

Open in new window

0
 

Author Comment

by:tarkmyler
ID: 22944637
The first option from BrandonGalderisi seems to work really well.  Any way to make this work without creating a seperate site and using host headers?  I llike to secure my page and use the redirect as the error when they attempt to access on port 80, but this script does not seem to work that way.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Logparser is the smartest tool I have ever used in parsing IIS log files and there are many interesting things I wanted to share with everyone one of the  real-world  scenario from my current project. Let's get started with  scenario - How do w…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now