Redirect IP to domain name before forcing https


New Member
Hi I just transferred my blog to Digital Ocean with openlitespeed server. For this I installed wordpress on ip address and then with the help of plugin transferred blog to ip address wordpress site.

Now I am facing issue with redirect. I managed to redirect ip address to domain name with htaccess file code. But ip address first redirecting to https so all browsers giving error.

When I click continue, website redirected to domain name.
Is there any way to redirect ip address directly to domain name (with https) and not forcing https before.

And I also found oragnic traffic reduces while direct traffic increased. Which mean oraganic traffic is being shown as direct traffic.


If this is your production site, please set your site URL and home URL to your final domain URL, not the IP. Hope it help.