I am making my website http to https (using letsencrypt certificate
) with redirect from http to https with following:
RewriteEngine on
RewriteCond %{SERVER_NAME} =xyz.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
I am making http API call to my website url from my android code, but it fails. When i change it to https, only then it succeeds. Why is this happening and is there a way such that http call itself from my android code can succeed.