To get this working you must use external redirect for every page in domain different than script's domain.
Redirect file ct_redir.php is located in main script's directory and requires filling up URL path to script.
Example redirect path is http://myotherhost.com/ct_redir.php
AJAX redir path: