Merge pull request #2719 from splitbrain/issue2706

use absolute URL in index.php when redirecting to doku.php
This commit is contained in:
Andreas Gohr 2019-03-13 09:55:33 +01:00 committed by GitHub
commit ff6bf340ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -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