Moving wordpress to different url/server creates redirect loop
I'm trying to move my wordpress site in to different server and url. How ever i seem to have a persistent redirect loop problem. I think this is not a cache, cookie or plugin problem and I am suspecting incorrect/missing settings in .htaccess file might be the culprit. The server where i am doing the moving from, uses nginx web server and does not have .htaccess file. The hosting provider that i am trying to move into uses apache2 and does have following .htaccess file in html folder:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-LB-Forwarded-Proto} !https
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
AddHandler application/x-httpd-php73 .php
Can somebody interpret if this .htaccess file is causing the redirect loop and/or what should be in the .htaccess file when using wordpress?