Automatically append the /exchange/ portion to the URL when users go to the root directory of the exchange server's URL. Example: http://mail.company.com/ -redirects to- http://mail.company.com/exchange/ Automatically change url from HTTP to HTTPS. Copy and paste the following code into a new file named owa_redir.asp or replace the contents of default.asp with this code. You also need to uncomment one or both of the functions in the main() function, the comment is the "//", remove those two slashes to enable the function: http2https() - HTTP to HTTPS append_exchange() - / to /exchange/ ----------------------------------------------------------------------------- <html> <head> <title>Exchange OWA</title> <%@language="jscript"%> <!--------------------------------------------------------------------------> <!--------------------------------------------------------------------------- Name..........: outlookwebaccess.asp Version.......: 0.1 Description...: IIS/Outlook Web Access scripts for URL redirection. Target OS.....: NT/2K/XP/2K3 Requires......: IIS/ASP,Exchange Last Modified.: 2005y-02m-16d Author........: Sean Blankenship (sean.blankenship@charter.net) Copyright.....: Copyright © 2005 Specialized Systems. All rights reserved. Notes.........: ... MS TECHNET 279681: How to Force SSL Encryption for an OWA Client 1) create: inetpub\wwwroot\owaasp\owahttps.asp 2) open ISS and go to properties of exchange folder -> custom errors -> 403.4 message type: URL: /owaasp/owahttps.asp 3) go to directory security -> secure communications -> require SSL note: the exchange folder is the only folder that needs to require SSL 4) restart all stopped services c:\net stop iisadmin /y ----------------------------------------------------------------------------> <!--------------------------------------------------------------------------> <% function http2https() { var url = new String() url = Request.servervariables('QUERY_STRING') url = url.replace('403;','') url = url.replace('http://','https://') Response.status = '200 OK' Response.write(url) } function append_exchange() { var url = new String() if(Request.servervariables('SERVER_PORT')==80) url += 'http://' if(Request.servervariables('SERVER_PORT')==443) url += 'https://' url += Request.servervariables('SERVER_NAME') url += '/exchange/' Response.redirect(url) } function main() { //http2https() //append_exchange() } main() %> <!--------------------------------------------------------------------------> </head> <body> <!--------------------------------------------------------------------------> <!--------------------------------------------------------------------------> <%//http2https()%> <!--------------------------------------------------------------------------> <!--------------------------------------------------------------------------> </body> </html>