Live Chat Software by Kayako |
Knowledgebase: License Q&A
What if I have several (sub)domains pointing to my website ?
Posted by Esvon Support on 14 October 2011 01:27 PM
|
|
One possible way to handle this situation to comply with license terms is to perform redirect by adding the following PHP code into your file inc/app_init.php (before the 1st function, replace "example.com" with your primary licensed domain name) CheckHTTPHost('www.example.com'); function CheckHTTPHost($host){ if($_SERVER['HTTP_HOST'] != $host && ctype_print($_SERVER['REQUEST_URI']) && !defined('ADMIN_AREA')){ header('HTTP/1.1 301 Moved Permanently'); header('Location: http'.($_SERVER['HTTPS']=='on' ? 's' : '').'://'.$host.$_SERVER['REQUEST_URI']); exit; } } | |
|
Comments (0)