Website opening with IP as well as Domain

Type: Bitnami Support Tool

My website opens with domain name as well as IP address. For e.g. and opens same page where abc. com is domain name and is the Static IP allocated to the VM on GCP.

I have entered the code for redirection in htaccess but nothing is happening. Although the IP alone gets redirected to the domain, but with anything after slash(/) does not get redirected.

I think there is some issue of granting access to a configuration file. But don’t idea which configuration file shall be modified in order to redirect the IP to domain name.

htaccess are not supported by default

if you always want to redirect all the request to your domain, please follow this guide

If you run into any issues when following the guide, please create a “Technical issue” ticket, not a “Bitnami Support Tool” one.

Thanks for the response.

But still I am confused, please guide me how to implement the redirection for internal pages.

Hi @uditbhan1986,

The guides include all the changes you need to apply to redirect all the requests to your domain. Please apply those changes and restart the Apache service for the changes to take effect. If you do not know how to use the command line or edit the files, please find someone in your community who can help you perform those changes.


Thanks a lot. Issue has been resolved now. :slight_smile:

Hi @uditbhan1986,

Thanks for the info. I’m glad you found a solution! We will close this thread as solved. Please do not hesitate to open a new one with any other questions you may have.