{ my $sslport = $modSSL{'TCPPort'} || '443'; my $sogosync = $sogosync{'status'} || 'enabled'; if (($port ne $sslport) && ($sogosync eq 'enabled')){ ## Redirect Web Address to Secure Address $OUT .= " RewriteEngine on\n"; $OUT .= " RewriteRule ^/Microsoft-Server-ActiveSync(/.*|\$) https://%{HTTP_HOST}/Microsoft-Server-ActiveSync\$1 \[L,R\]\n"; } }