Redirect EC2 ipv4 address to domain name

Keywords: WordPress - AWS - How to - Domain Name (DNS)

I have created a Bitnami Ec2 instance and have assigned the domain to it. But I am still being able to access it through my ip address. Because of that duplicate content issue, I’m losing rankings.

I followed this page and pasted the first two codes in bitnami.conf file and the other in th evhosts directory.

But still my ip address is up. How do i redirect it to my domain?

Hello @athilafsal,

Did you follow these guides?

If so, we have a Support Tool that will gather relevant information for us to analyze your configuration and logs. Could you please execute it on the machine where the stack is running by following the steps described in the guide below?

Please note that you need to paste the code ID that is shown at the end.