you could use a simple redirection html based code, put it as a default
document in /mail dir
you'll have to create a virtual directory or at least change the name for
the secured mail dir.
and it'll work.
<meta http-equiv="Refresh" content="1; URL=https://www.test.com/mail">
you could even write a server side (php) script or even javascript etc...
that modifies the http headers whenever syn/ack goes to
http://www.test.com/mail and redirect it.
if you wanna do it in apache's way use redirect (that's what i'm using)
i'm really not sure about the performance redirect and rewrite rules, sorry.
<VirtualHost 99.xxx.99>
DocumentRoot "/opt/local/apache2/maindoc/"
Redirect /mail https://www.test.com/mail
ErrorLog logs/tot_error_log
ServerName www.mpthrill.com
</VirtualHost>
you could find more information about the Redirect directive here:
http://httpd.apache.org/docs/mod/mod_alias.html
good luck!
- Shay Hugi
- Mpthrill.com Software Industries
Quote:> Sorry to ask, but I would need help with a redirect issue:
> If a user wants to access http://www.test.com/mail he should be
> redirected to
> https://www.test.com/mail
> What possibilities do I have to do that?
> What is more performant? Redirect or Rewrite?
> Is it better to user relative paths or full qualified paths?
> Thanks in advance,
> --
> mfg/regards
> Helmut K.C. Tessarek