Merge pull request #2719 from splitbrain/issue2706
use absolute URL in index.php when redirecting to doku.php
This commit is contained in:
commit
ff6bf340ad
|
@ -14,8 +14,10 @@
|
|||
* @author Andreas Gohr <andi@splitbrain.org>
|
||||
*/
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue