Well, to be honest, I'm not an expert on this rule lol I've copied it after some searching.<div><br></div><div>The result however is that it keeps the entire URL in tact (everything past the / included) and just replaces http with https.</div>
<div><br></div><div>Though, if I'd have to guess then the condition makes sure that it only does the rewrite if it isn't https (or something like that).</div><div><br></div><div>-- Bart<br>
<br><br><div class="gmail_quote">2011/11/10 Iosif  Fettich <span dir="ltr"><<a href="mailto:ifettich@netsoft.ro">ifettich@netsoft.ro</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Bart,<div class="im"><br>
<br>
On Thu, 10 Nov 2011, Bart wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You could also try to redirect everything from port 80 to 443, this would<br>
ensure that apache only touches RT once:<br>
<br>
<VirtualHost *:80><br>
       ErrorLog /opt/rt4/var/log/apache2.error<br>
       TransferLog /opt/rt4/var/log/apache2.<u></u>access<br>
<br>
RewriteEngine On<br>
RewriteCond %{HTTPS} off<br>
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_<u></u>URI}<br>
</VirtualHost><br>
</blockquote>
<br></div>
Just out of curiosity: does the conditioning with<br>
<br>
RewriteCond %{HTTPS} off<br>
<br>
bring in some extra value in the above ? Why/when would it be necessary ?<br>
<br>
Thanks,<br><font color="#888888">
<br>
Iosif Fettich<br>
</font></blockquote></div><br></div>