[imp] Auto rediret to https if http is typed in URL

Michael Bellears michael.bellears at staff.datafx.com.au
Wed Nov 12 14:24:36 PST 2003


> 
> How do you se up auto redirect to the https login
> rather than standard http. 

This is how I achieve it - Your mileage may vary.

Apache conf:

Note: Must be ssl enabled (eg. mod_ssl)

<VirtualHost xxx.xxx.xxx.xxx>
...
   RewriteEngine On
   RewriteCond %(HTTP_USER_AGENT)        MSIE
   RewriteRule ^/(.*)    https://webmail.datafx.com.au/$1    [L]
   RewriteCond %(HTTP_USER_AGENT)        Mozilla.5
   RewriteRule ^/(.*)    https://webmail.datafx.com.au/$1    [L]    
   Redirect      /       https://webmail.datafx.com.au/
</VirtualHost>     

HTH,
MB


More information about the imp mailing list