Hi all,
I installed DokuWiki into a subdirectory of my domain (shared webspace):
http://domain.com/dokuwiki/
Everything works fine. However, I wanted the wiki to be accessible via
http://domain.com/ only
Settings in local.php:
$conf['basedir'] = '/dokuwiki/';
$conf['baseurl'] = 'http://domain.com';
$conf['userewrite'] = '1';
I uncommented this section of the .htaccess.dist file and saved it as .htaccess in the root directory of
http://domain.com/
## Uncomment these rules if you want to have nice URLs using
## $conf['userewrite'] = 1 - not needed for rewrite mode 2
RewriteEngine on
RewriteRule ^_media/(.*) lib/exe/fetch.php?media=$1 [QSA,L]
RewriteRule ^_detail/(.*) lib/exe/detail.php?media=$1 [QSA,L]
RewriteRule ^_export/([^/]+)/(.*) doku.php?do=export_$1&id=$2 [QSA,L]
RewriteRule ^$ doku.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) doku.php?id=$1 [QSA,L]
RewriteRule ^index.php$ doku.php
## Not all installations will require the following line. If you do,
## change "/dokuwiki" to the path to your dokuwiki directory relative
## to your document root.
RewriteBase /dokuwiki
It works insofar, as I can manually access it via
http://domain.com/start etc.
The problem is that all links (on the homepage, for instance) still include the subdirectory (
http://domain.com/dokuwiki/start,
http://domain.com/dokuwiki/sidebar and so on), the same goes for CSS files etc.
HTML Source:
<link rel="start" href="/dokuwiki/"/>
<link rel="contents" href="/dokuwiki/start?do=index" title="Übersicht"/>
...
How do I configure DokuWiki to omit the /dokuwiki/ subdirectory path (since the URL rewrite itself seems to work perfectly)?
Or do I get something wrong here? :-)
Any hints appreciated + Kind regards!