Probably dumb apache question
Dirk-Willem van Gulik
dirkx at webweaving.org
Thu Oct 23 07:13:19 PDT 2003
> I have set up a new freebsd/apache/mod_ssl server. I want to force all
> connections to use SSL.
> I know I can simply turn off listening on port 80, but because I know people
> using this site will instinctivly type "http" instead of "https", I'd like
> to force a redirect.
# Redirect *everything* to SSL.
RewriteRule ^(.*) https://secure.foo.com$1 [R=301]
More information about the freebsd-questions