Well, to be honest, I'm not an expert on this rule lol I've copied it after some searching.
The result however is that it keeps the entire URL in tact (everything past the / included) and just replaces http with https. 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). -- Bart 2011/11/10 Iosif Fettich <[email protected]> > Hi Bart, > > > On Thu, 10 Nov 2011, Bart wrote: > > You could also try to redirect everything from port 80 to 443, this would >> ensure that apache only touches RT once: >> >> <VirtualHost *:80> >> ErrorLog /opt/rt4/var/log/apache2.error >> TransferLog /opt/rt4/var/log/apache2.**access >> >> RewriteEngine On >> RewriteCond %{HTTPS} off >> RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_**URI} >> </VirtualHost> >> > > Just out of curiosity: does the conditioning with > > RewriteCond %{HTTPS} off > > bring in some extra value in the above ? Why/when would it be necessary ? > > Thanks, > > Iosif Fettich >
-------- RT Training Sessions (http://bestpractical.com/services/training.html) * Barcelona, Spain November 28 & 29, 2011
