[KLUG Members] Rewriting to SSL

Adam Tauno Williams awilliam at whitemice.org
Thu Jul 28 22:23:57 EDT 2005


I want to drive all traffic on a site to use SSL.  But user's will never
remember to type https://...

I've done this in the past by simply putting -
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{SERVER_PORT} !443$
RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R,L]
</IfModule>
- in the configuration.  And all was well.

But now I just get a "Error 400  Bad Request!" message whenever I visit
a http://... URL.

Going to https://.... works perfectly.

Ideas?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://www.kalamazoolinux.org/pipermail/members/attachments/20050728/79362cb9/attachment.bin


More information about the Members mailing list