On Tue, 2007-02-13 at 15:59 -0700, Topher Fischer wrote:
> AuthName "FOO"
> AuthType Basic
> AuthUserFile /PATH_TO_DIR/.htpasswd
> order deny,allow
> Require valid-user
> 
> RewriteEngine On
> RewriteCond %{HTTPS} !^on$
> RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]

http://uug.byu.edu/pipermail/uug-list/2005-April/017352.html

Alternatively, if you're sure you want to use mod_rewrite, I suggest
making it a permanent redirect. [L,R=301]

Make sure you've set the appropriate AllowOverride in your httpd.conf.

-- 
Stuart Jansen              e-mail/jabber: [EMAIL PROTECTED]
                           google talk:   [EMAIL PROTECTED]

"However beautiful the strategy, you should occasionally look at 
the results." -- Winston Churchill

Attachment: signature.asc
Description: This is a digitally signed message part

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to