DokuWiki

It's better when it's simple

User Tools

Site Tools


Sidebar

Translations of this page?:

Learn about DokuWiki

Advanced Use

Corporate Use

Our Community


Follow us on Facebook, Twitter and other social networks.

config:basedir

Configuration Setting: basedir

Path part of dokuwiki URL - blank for autodetect

  • Type: String
  • Default:

Usually DokuWiki can detect the full URL it is available at on its own (autodetect). But sometimes this does not work for various reasons. If DokuWiki does not seem to function properly and cannot find things such as images for its web pages, you can set the path here.

Please, note that despite its name, this option is only vaguely related to files and directory. In fact, it is the path part of the URL that leads to your DokuWiki installation. It frequently happens that the path part of the URL is also the relative directory from the web server root to the DokuWiki installation directory, hence the name.

If your DokuWiki is located at http://www.someserver.org/dokuwiki/,
you are likely to set this option to /dokuwiki/. Be sure to have a leading and a trailing slash!

If your DokuWiki installation is located directly inside the server root or a subdomain like
http://www.subdomain.yourdomain.com you should set the basedir to / a single slash.

The general rule is : If your DokuWiki is located at http://something.org/whatever, you are likely to set this option to /whatever/. Be sure to have a leading and a trailing slash!

Danger: Changing this option could make your wiki and the configuration menu inaccessible.

See also

config/basedir.txt · Last modified: 2012-11-27 22:43 by Klap-in