I have setup an alias to add a documentation wiki to my website. This allows me to have wordpress running under
http://website.com and doku under
http://website.com/documentation. It is working, but i want to use the .htaccess file to rewrite the url. I have done this many times before, but i cannot get this to work and i have no idea what is wrong.
I have added the following alias to apaches virtual host for my website.
Alias /documentation /var/www/website/documentationwiki/dokuwiki
I have created a .htaccess file and it contains the following.
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
I have also enabled .htaccess and the slash options from the admin menu (which i can no longer access and have to manually edit the conf file now).
When i visit
http://website.com/documentation/start i get a 404 error "The requested URL /documentation/start was not found on this server.".
Does anyone have any idea what could be causing all of this? This is usually a simple thing to do so it doesnt make sense that it wouldnt work. I have tried adding some of my own rules instead of the default ones and they dont work either, even if i use RewriteBase /documentation.