diff --git a/index.php b/index.php index 67c6e92be3..bfb4c0b6a3 100644 --- a/index.php +++ b/index.php @@ -14,8 +14,10 @@ * @author Andreas Gohr */ if(php_sapi_name() != 'cli-server') { - header("Location: doku.php"); - exit; + if(!defined('DOKU_INC')) define('DOKU_INC', dirname(__FILE__).'/'); + require_once(DOKU_INC.'inc/init.php'); + + send_redirect(DOKU_URL.'doku.php'); } # ROUTER starts below