Multi-brand and Geolocation

Multi-brand and Geolocation

Back   Posted on 5 june 2020 / Updated on 9 june 2020
Reading time 2 minutes

Multi brand & multi domain

As we explain in our guide to WHMCS SEO, WHMCS is not good at Search Engine Optimization. Among the many problems, the multi-language system is based on PHP sessions. Search engines don't use sessions therefore your WHMCS is indexed only in default language.

Mercury removes this problem by letting you use multiple domains on the same WHMCS, one for each language. Our website serves as a perfect example. In fact we use:

This way search engines can "see" both websites indexing them in their respective languages. Moreover the structure gives the opportunity to choose location and language for each domain on Google Web Master Tools and Bing. Lastly it is fully compatibile with the integrated sitemap generator.

You can freely configure as many domains and subdomains as you want. For example you can get a Wikipedia-like language structure and mix it with multiple brands like follows:

  • it.example.com
  • en.example.com
  • fr.example.com
  • another-brand.de
  • another-brand.us

Multi-domain functionalities extend to email notifications to ensure that customers don't land on the wrong domain. For example if a visitor requests password reset from katamaze.it, he receives the reset link from the same domain. This is valid also for invoice links, quotes, affiliate URLs, support tickets, email signature, login and logout.

IP Geolocation

Next to multi-domain, the integrated geolocation service can be used to apply country-specific rules that affect user-experience depending on location. Such rules can be used on languages, currencies, templates, cart templates and domains like in the following example.

Country Domain Language Currency Template
Italy example.it italian EUR blue
Poland example.pl polish EUR blue
United Kingdom english GBP red
India english INR green
United States english USD red

Integration

To use multi-domains and IP geolocation, you need to place the following code at the very end of your configuration.php file.

include_once('modules/addons/Mercury/core/Mercury_Admin/resources/snippets/Domains.php');

All the involved domains and subdomains must be configured to point to the server that hosts WHMCS. Simply put, if your WHMCS is hosted on 127.0.0.1, all domains must resolve this same IP with an A record. Keep in mind that the overriding of URLs for email notifications is supported starting from version 7.8 of WHMCS.

Let us repeat it one more time. The use of multi-domain and geolocation require:

  • Integration code in configuration.php
  • Additional domains must point to your server with an A record
  • WHMCS version 7.8 or newer is required to override email notifications

Comments (0)

Speak Your Mind Cancel Reply