Solved

VB Redirect Script Please?

Posted on 2008-10-27
4
228 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 7 Log 2 40
ASP.Net Session State alternatives 3 83
ISS migration from IIS 6 to IIS 8.5 rendering problems 4 63
IIS6 Virtual SMTP server resends old email after reboot 13 56
Today I came across an interesting issue that had me pulling my hair out.  I was troubleshooting a new internal web site which uses integrated security instead of anonymous.  When browsing the site from my laptop, I was able to access it with no iss…
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.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

770 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