Additional domains can be added to any site that is hosted with us. You can learn more about additional domains on our domains page.
After the domain has been registered, transferred or pointed over to us it will redirect to the home page of the site it was ordered for as an additional domain. If need be, you can change the primary domain of the site with the help of our Defining the Primary Domain for My Site tutorial.
Redirecting an Additional Domain to a Landing Page
In some cases, additional domains need to be redirected to a specific page on the site, such as a landing page or a product page. This can be configured using the Redirection plugin; please refer to our detailed instructions regarding that plugin.
Alternatively, the redirection can also be achieved using a simple PHP file placed in the mu-plugins directory.
Implementing Redirection with Nginx
To create a nginx redirect, connect to the site via SSH and navigate to the nginx folder:
cd data/wordpress/nginx/
Next, create and open a new configuration file (we'll call it redirect.conf for clarity) using the nano text editor:
nano redirect.conf
Inside, we'll add the following:
# Redirect an additional domain to a landing page
if ($host = example.org) {
return 301 https://example.com/myproduct/;
}
if ($host = www.example.org) {
return 301 https://example.com/myproduct/;
}
Then, if using nano as the editor like we did, press ctrl + S and ctrl + X to save and exit the file. Now you're ready to restart nginx for the effect to take place:
wp-restart-nginx
The final step is to test the redirect works. This is best done with cURL, as browsers have multiple layers of cache enabled, which might cause the page to load from memory, instead of nginx, which is running on our servers.
Important Notice
Please note that we cannot take responsibility for customer created redirects or other nginx configurations. In case the configurations cause errors or issues and our customer support is asked to fix it, we might have to charge the work as expert services.
Need Help?
We're more than happy to handle these configurations for you as part of our expert services, contact us to learn more!
Premium Domains
Check out our pricing list if you are looking for a more unique extension for your domain!
