Redirect IP to Domain Name on Wordpress + OpenLiteSpeed on GCP

dm5n

New Member
#1
Hi, I've setup Wordpress on Google Cloud Platform using the Openlitespeed-Wordpress stack on Compute Engine.

FYI this is my first time setting things up on the cloud server side.

I've setup SSL and https on the site and changed the Wordpress General Settings > URLs to www.mydomain.com. Http redirect to https appears to be working.

The problem is that when I switch to a different browser (Safari) and go to the Site > Home Page > Top Menu and click on eg Sample Page as a visitor – the site redirects to the IP and the browser gives a warning about Insecure Connection.

I've deleted the IP from OpenLiteSpeed WebAdmin > Listeners > Virtual Host Mappings, so that there's only the mydomain.com and www.mydomain.com addresses.

Thanks for any assistance.
 

Cold-Egg

Administrator
#2
Hi @dm5n ,

Please check if you have insert any IP redirect in .htaccess file.
Also, please verify the issue with incognito browser on Chrome or Firefox see if it's due to your browser cache.

Best,
Eric
 

dm5n

New Member
#3
Hi Eric,

Thankyou. Private window/ Incognito browsing on Firefox/Chrome/Safari didn't show a problem.

Re: numeric IP – at the moment, entering numeric IP into browser yields 404 msg and the address shows up as https://numeric.ip.

Entering http://numeric.ip redirects to https://numeric.ip and the 404 msg. I'm wondering if that's ok, because the mydomain works and what is the best practice re: security?
 
Top