Translations of this page?:
Table of Contents

Problem

Some remote hosting services accept as start page only “index.php”. That's a problem if you wish to set up a DokuWiki..

Question

Is it possible to rename “doku.php” to “index.php”? What are the needed changes to the DokuWiki structure?

Answer

Don't rename doku.php, create the file, index.php, with the following contents.

<?php
// tell dokuwiki to make all links using index.php rather than doku.php
define('DOKU_SCRIPT','index.php');
 
// jump to main dokuwiki script
include('doku.php');
?>

This has the advantage of allowing you to upgrade your Dokuwiki installation without any additional changes - as long as doku.php and DOKU_SCRIPT remain unchanged. A viable alternative is

<?php
/**
 * Forwarder to doku.php
 *
 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
 * @author     Andreas Gohr <andi@splitbrain.org>
 */
header("Location: doku.php");
?>
 
wiki/discussion/renaming_doku.php.txt · Last modified: 2006/11/13 14:48 by andi
 
Imprint Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsTranslate