Site Domain Redirects

The following procedure will redirect one or more domains to another domain. The steps assume a shell user named myuser, an application named myredirect, and a target domain of mydomain.com.

1

Add to control panel all of the domains which will be redirected. See Adding Domains for more information.

2

Create a new Apache+PHP application via the control panel. See Adding an Application for more information.

3

Create a new site via the control panel. See Adding Sites for more information.

4

Under "Application Routing Info" add the myredirect application from step 2 using / as the route URI path.

5

Under "Domain Info" add all of the domains and subdomains that you wish to redirect.

6

Save the site.

7

Create a file /home/myuser/apps/myredirect/.htaccess with the following contents to perform the redirect:

RewriteEngine on
RewriteRule ^(.*)$ https://mydomain.com/$1 [R=301,L]

When those steps are complete, any traffic to the new site should be redirected to the same URI on https://mydomain.com.