Redirect hostname for SSL

Folks,

How do I redirect a hostname to another for every page in the site? This is for SSL. I can, of course, redirect http://www.domain.com to https://domain.com, but what I’m having trouble with is if someone hits a page directly using “www”, for example:

http://www.domain.com/db.nsf/page1

Since we want to use SSL throughout our site, we want people using:

https://domain.com/db.nsf/page1

I can’t figure out how to redirect the hostname, though, if they hit a page/doc directly.

Any ideas?

Jon