Koozali.org: home of the SME Server

Forward to SSL website

mackayr

Forward to SSL website
« on: January 26, 2006, 04:23:30 AM »
I have a registered domain name and a couple of subdomains.  One of them is webmail.domain.com.  Is there a way to have SME redirect all requests to http://webmail.domain.com to https://webmail.domain.com.  Also, currently I get "connection refused" if I type https://webmail.domain.com directly.  Why would this be?

Any advice?

Thanks,

Rob

bart-s

Forward to SSL website
« Reply #1 on: January 26, 2006, 09:58:20 PM »
Perhaps I know a quick and dirty solution for your first problem. Place the following javascript code in an editor, save it as 'index.html'. It redirects visitors to an other website.

Code: [Select]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>You are being forwarded to...</title>
<script language="JavaScript">
<!--
var time = null
function move() {
window.location = 'https://www.yourdomain/webmail'
}

//-->
</script>
</head>
<body onload="timer=setTimeout('move()',2000)">
</body>
</html>


Not an elegant solution, but it works for me. I'm sure there must be a better way to do this..