Skip to content

Instantly share code, notes, and snippets.

@ungerik
Created August 11, 2021 08:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ungerik/53d367d14b40636111028410fd8774f5 to your computer and use it in GitHub Desktop.
Save ungerik/53d367d14b40636111028410fd8774f5 to your computer and use it in GitHub Desktop.
Configure domain forwarding for Bitnami WordPress Stack
sudo nano /opt/bitnami/apache2/conf/bitnami/bitnami.conf
# Redirect other domains permanently to domonda.com
<If "%{HTTP_HOST} != 'example.com'">
Redirect 301 "/" "https://example.com/"
</If>
sudo /opt/bitnami/ctlscript.sh restart apache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment