Created
August 11, 2021 08:42
-
-
Save ungerik/53d367d14b40636111028410fd8774f5 to your computer and use it in GitHub Desktop.
Configure domain forwarding for Bitnami WordPress Stack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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