Solved

VB Redirect Script Please?

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
IIS Issue 7 97
Disable output buffering in IIS8 for CGI exe file output 5 54
2 websites hosted on premise 6 41
Exchange Activesync 441 in logs 2 92
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.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

895 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

13 Experts available now in Live!

Get 1:1 Help Now