Problem with redirect in htaccess wordpress

Solution:

You can’t force subfolder or subdomain to redirect to https

for https redirection just use this

RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

For Subfolder

RewriteRule ^/?(.*) https://%{SERVER_NAME}/home/$1 [R,L]

also you can use the default .htaccess for redirection

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]


# BEGIN WordPress
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>