Here’s a note of what I needed to do in order to get WordPress serving as the default site on my domain – it was originally at www.donaldsimpson.co.uk/wordpress/ and I wanted it to just be www.donaldsimpson.co.uk
A bit of a Google shows there are many ways to do this, but here’s how I did it:
vi /opt/bitnami/apache2/conf/httpd.conf
then comment the current entry and add a new one pointing to the htdocs dir for WordPress:
#DocumentRoot “/opt/bitnami/apache2/htdocs”
DocumentRoot “/var/www/html/donwp.freemyip.com”
Then restart Apache (/opt/bitnami/apache2/bin/apachectl restart or similar) after which you just need to go to the WordPress Admin General Settings page and change these values to point to the root of your site/domain:
WodPress address (URL) www.donaldsimpson.co.uk
Site address (URL) www.donaldsimpson.co.uk
And that should be that – you can now delete that backup you made at the start…
Update:
It’s may be a good idea to define your WP_HOME and WP_SITEURL in your wp-config.php file too, like so:
define(‘WP_HOME’, ‘https://www.donaldsimpson.co.uk’);
define(‘WP_SITEURL’, ‘https://www.donaldsimpson.co.uk’);
This avoids a database lookup to get these details, which should speed things up fractionally too 🙂