mirror of
https://github.com/VladPolskiy/dokuwiki.git
synced 2025-07-29 11:56:50 +00:00
use absolute URL in index.php when redirecting to doku.php, fixes #2706
Note that in order to get an absolute URL, the whole DokuWiki environment is loaded now in index.php.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user