Possibly use a RewriteRule or something of the sort? RewriteEngine On RewriteCond %{HTTP_HOST} . RewriteCond %{HTTP_HOST} ^www\.mydomain\.com$ RewriteCond %{SERVER_PORT} ^443$ RewriteRule ^(.*) https://www.mydomain.com/$1 [R=301,L]
I've not tested that, and I doub't it's spot on but hopefully it's the right direction... ----- Original Message ---- > From: Dean Pullen <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Sent: Monday, 31 March, 2008 5:34:38 PM > Subject: Bad request when users goto http://www.mydomain.com:443 > > We get the following error: > > Bad Request > > Your browser sent a request that this server could not understand. > Reason: You're speaking plain HTTP to an SSL-enabled server port. > Instead use the HTTPS scheme to access this URL, please. > > Hint: https://www.mydomain.com/ > > When users go to http//www.mydomain.com:443 - which we obviously need to > catch and redirect to https://www.mydomain.com > > What's the best way of achieving this? > > We have two virtual hosts setup one on port 80 (which is already > redirecting http traffic on port 80 to https on port 443) and one on > 443. > ______________________________________________________________________ > Apache Interface to OpenSSL (mod_ssl) www.modssl.org > User Support Mailing List modssl-users@modssl.org > Automated List Manager [EMAIL PROTECTED] > __________________________________________________________ Sent from Yahoo! Mail. A Smarter Inbox http://uk.docs.yahoo.com/nowyoucan.html ______________________________________________________________________ Apache Interface to OpenSSL (mod_ssl) www.modssl.org User Support Mailing List modssl-users@modssl.org Automated List Manager [EMAIL PROTECTED]