Solved

VB Redirect Script Please?

Posted on 2008-10-27
4
229 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here are the symptoms: You start receiving calls from users that one of your legacy web apps isn't coming up, so you log into your IIS 5 server to check it out.  When you pull up the services, you notice that the WWW Publishing service isn't runn…
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

828 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