After installing the website using AWS image you would have noticed that the URL still have reference of the EC2.
It can be in post URLs like
How to get rid of that?
The easiest way to do it is by going to your wordpress dashboard.
In the dashboard go to Settings>General.
In the General Settings page you will see two parameters, WordPress Address (URL) and Site Address (URL). Change them to your website name e.g. http://yourwebsite.com .
Finally save it. Your post URLs should now look like
In Bitnami WordPress Image you will find that WordPress Address (URL) and Site Address (URL) will be greyed out and it won’t allow to modify them. In that case you will have to modify wp-config.php file.
For bitnami image the file location is /opt/bitnami/apps/wordpress/ht
cp -p /opt/bitnami/apps/wordpress/ht
docs/wp-config.php /opt/bitnami/apps/wordpress/ht docs/wp-config.php.old sudo vi /opt/bitnami/apps/wordpress/htdocs/wp-config.php
Modify two lines which has entries for WP_HOME and WP_SITEURL . They should now look like.
Finally save the file.
When you refresh the page it should now show your desired URL.
If the URL is still not showing correctly and you are sure that you have modified the file correctly than restart apache.
sudo /opt/bitnami/ctlscript.sh restart apache
This should get you done!