IP address forwards. IP address/page_name doesn't

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

Description:
My Bitnami installation is on Lightsail with Wordpress. I have the following lines in the wp-config.php file which forwarded my IP address to my domain name successfully.

define( ‘WP_HOME’, ‘https://my-site.com/’ );
define( ‘WP_SITEURL’, ‘https://my-site.com/’ );

However, it doesn’t forward any of my inner pages. So http://12.245.53.13/locations (made up IP) doesn’t forward to https://my-site.com/locations. Any tips on how to fix this? Thanks!

Hi @zoro,

We have a Diagnostic Tool that will gather relevant information for us to analyse 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?

How to Run the Bitnami Support Tool in a cloud image or virtual machine

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

Regards,
Michiel

I just resolved my issue. I had to edit the RewriteRule in wordpress-vhost.conf file in /opt/bitnami/apache/conf/vhosts.

1 Like