I tried some help from other topics on this site but I faced the redirect loop error.
My current htaccess code:-
RewriteEngine on
RewriteCond %{SERVER_PORT} ^80$
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteRule ^([^.]+)/?$ index.php?v=$1 [QSA,L]
RewriteEngine on
RewriteCond %{SERVER_PORT} ^443$
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteRule ^([^.]+)/?$ index.php\?v=$1 [QSA,L]
The above is not related to this question but to get a proper help from you, I have included it.
Now I want to redirect all https urls to http except two /login/ and /register/
How can I ensuring to use the minimum conditions.