when I try to visit .net domain I get this error "incorrect server".
I am sure it is not from server setting because I can open a test file located in .com folder by visiting .net domain (mydomain.net/test.txt etc.).
but script do not works. what should be changed? I tried changing config.php to detect both domains:
Code: Select all
if(strpos($_SERVER['HTTP_HOST'],'mydomain.net')>0) {
define('HTTP_SERVER', 'http://www.mydomain.net/');
define('HTTP_IMAGE', 'http://www.mydomain.net/image/');
} else {
define('HTTP_SERVER', 'http://www.mydomain.com/admin/');
define('HTTP_IMAGE', 'http://www.mydomain.com/image/');
}
thanks