How to set up White Label on the hosting

You have two way to create White Label: setup on the subdomain or on the primary domain. 

Pay attention: after you set up White Label on the hosting you should create it in the personal account.

Settings of White Label on the subdomain

For third-level domains (for example avia.your_site_name.com):

Create the CNAME record for the domain in the DNS settings on your hosting. The CNAME record should look like: "avia.your_sitename.com IN CNAME whitelabel.travelpayouts.com." (avia - it's just example, you can use your own domain name).

Important: The CNAME should be an entry in domain DNS-settings; you don't need to create a subdomain for White Label on your hosting.

Examples of creating CNAME record in different control panels you can find here

There must be a period (up to 72 hours) after you created CNAME in domain settings. 

Settings of White Label on the primary domain

For second-level domains (for example, your_site_name.com):

Set up a 301 redirect of the domain your_domain.com to www.your_site_name.com.

To do this in the root directory of your site you must create the file ".htaccess" with the following content (if the file already exists, simply add this entry to it):

RewriteEngine on
RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$ RewriteCond %{HTTPS}s ^on(s)| RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Then set up forwarding from www.your_site_name.com to whitelabel.travelpayouts.com. Create CNAME record in the DNS settings of your hositng. The CNAME record should look like: "www.your_site_name.com IN CNAME whitelabel.travelpayouts.com.".

Examples of creating CNAME record in different control panels you can find here.

There must be a period (up to 72 hours) after you created CNAME in domain settings.

Was this article helpful?

Have more questions? Submit a request