Hi there!
From the notes, I understand that you have a problem with half of your WordPress site on amazon LightSail using a static IP address and another half using your domain.
Please run the $dig command on your domain and see if it points to the IP address. If it does, your DNS is setup correctly, which means it's most likely a WordPress configuration issue. Check if the IP is configured somewhere in wordpress settings file like wp-config.php .It's possible that since you set this up prior to attaching your domain, that it has the IP address listed as the site name instead of your domain name.
You can set up the htaccess to forward the IP to the domain. If you are using the bitnami image, you can adjust the htaccess.conf and do something like: RewriteEngine On RewriteCond %{HTTP_HOST} ^IP.IP.IP.IP [OR] RewriteRule (.*)$ http://example.org$1 (http://example.org$1/) [R=301,L] I also recommend setting up HTTPS/SSL if possible for better security.
If the dig command doesn’t point to the IP address, then you have to set it up properly.Please check the outlined documentation to setup DNS via LightSail DNS[1] and Route53[2].If you are still having issues with the DNS setup you can contact AWS customer support to further assist on the issue[3]
I hope you find the above information helpful.
Have a great day ahead!
References:
[1]https://lightsail.aws.amazon.com/ls/docs/en_us/articles/lightsail-how-to-create-dns-entry
Relevant questions
Pointing domain to a sub directory - Wordpress on LAMP
asked 3 years agoHalf of my wordpress site uses my Static Ip while the other half uses my domain
asked 3 months agoHow can I get the IP address of my domain.?
asked a month agoRoute 53 showing IP in browser instead of my domain name
asked 2 years agoWhy is there this error message on my domain?
asked a month agoMy Lightsail instance site shows someone else's content
asked 4 months agohow do i fix my SMTP error on my WP site?
asked 5 months agoMy Lightsail Wordpress site is running extremely slow for no apparent reason
asked 5 months agowhy my wordpress site always timed out everyday
asked 6 months agodysfunction of my wordpress site
asked 7 days ago
Check if the IP is configured somewhere in wordpress settings file like wp-config.php