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/
-----------------------------------------------------------------------------
Exchange OWA
<%@language="jscript"%>
<%
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()
%>
<%//http2https()%>