if ($ACT == 'login') { phpCAS::setFixedServiceURL( 'http://{YOUR CAS LOGIN SERVICE}?service={YOUR WIKI URL}/doku.php?' . $_SERVER["QUERY_STRING"]);