https rewrite not working
===

    
I got the following htaccess, tried adding https rewrite/redirect - and it doesn't work, any idea what am I doing wrong?

    RewriteEngine on
    RewriteRule \.svn/ - [F]
    
    # rewrite traffic to HTTPS
    RewriteEngine on
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
    
    # if a directory or a file exists, use it directly
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    
    # otherwise forward it to index.php
    RewriteRule . index.php