mirror of
https://github.com/VladPolskiy/dokuwiki.git
synced 2025-08-05 19:08:37 +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>
|
* @author Andreas Gohr <andi@splitbrain.org>
|
||||||
*/
|
*/
|
||||||
if(php_sapi_name() != 'cli-server') {
|
if(php_sapi_name() != 'cli-server') {
|
||||||
header("Location: doku.php");
|
if(!defined('DOKU_INC')) define('DOKU_INC', dirname(__FILE__).'/');
|
||||||
exit;
|
require_once(DOKU_INC.'inc/init.php');
|
||||||
|
|
||||||
|
send_redirect(DOKU_URL.'doku.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
# ROUTER starts below
|
# ROUTER starts below
|
||||||
|
Reference in New Issue
Block a user