A common use case for any Magento site is to redirect one domain to another. Fortunatley if you're on MDOQ managed Magento hosting, configuring this is very simple.
In this example we are going to assume that you want to redirect all traffic from example.com => www.example.com and you want to keep any path and/or query variables. We are also going to assume that the domain to be redirected to serves secure traffic (https). eg
https://example.com/a/b/c?a=b => https://www.example.com/a/b/c?a=b
http://example.com/a/b/c?a=b => https://www.example.com/a/b/c?a=b
If this is is not the case please check out another of our guide for implementing more fine grained redirects.
- Open the settings for your production site and navigate to the Nginx settings.
- Click the plus sign next to Additional Domains
- In the Domain field enter "example.com"
- In the Redirect field enter "www.example.com"
- Save the configuration
- Synchronize Nginx.
(This will cause 1 minute of downtime whilst the new configuration is applied)
That's it. It can easily be achieve in a few minutes.