Subdomain wrong redirect from http to https

Hello, when I access to a subdomain whitout https (http://subdomain.domain.tld) apache redirect to https://subdomain.domain.tld/php5-fcgi/index.php

I'm activated let's encrypt on domain, this create the ssl certificate. At this point everything is ok. http://subdomain.domain.tld and https://subdomain.domain.tld load fine.

But when in Redirect tab I activated Rewrite HTTP to HTTPS I get bad redirection when access to http://subdomain.domain.tld it's give me to https://subdomain.domain.tld/php5-fcgi/index.php and get "File not found." on screen

vhost without Rewrite HTTP to HTTPS:

            RewriteEngine on
            RewriteCond %{REQUEST_URI} ^/\.well-known/acme-challenge/
            RewriteRule ^ - [END]
            RewriteCond %{HTTP_HOST} ^domain\.com\.ve$ [NC]
                            RewriteRule ^(.*)$ http://www.domain.com.ve$1 [R=301,NE,L]
            RewriteCond %{HTTP_HOST}   ^subdomain\.domain\.com\.ve$ [NC]
                            RewriteCond %{REQUEST_URI} !^/webdav/
            RewriteCond %{REQUEST_URI} !^/php5-fcgi/
            RewriteCond %{REQUEST_URI} !^/subdomainfolder/

            RewriteRule   ^/(.*)$ /subdomainfolder/$1  [L]

vhost with Rewrite HTTP to HTTPS:

            RewriteEngine on
            RewriteCond %{REQUEST_URI} ^/\.well-known/acme-challenge/
            RewriteRule ^ - [END]
            RewriteCond %{HTTP_HOST} ^domain\.com\.ve$ [NC]
                            RewriteRule ^(.*)$ http://www.domain.com.ve$1 [R=301,NE,L]
            RewriteCond %{HTTP_HOST}   ^ subdomain\.domain\.com\.ve$ [NC]
                            RewriteCond %{REQUEST_URI} !^/webdav/
            RewriteCond %{REQUEST_URI} !^/php5-fcgi/
            RewriteCond %{REQUEST_URI} !^/subdomainfolder/

            RewriteRule   ^/(.*)$ /subdomainfolder/$1  [L]

    RewriteCond %{HTTPS} off
            RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]