Hi,
Here's the setup I would like to accomplish :
- virtual host "private.mywiki.com"
- Document root : /var/www/dokuwiki.
- I want this to load the root of the website.
- There will be an ACL on the page.
- Virtual host "public.mywiki.com
- I want this to load, "private.dokuwiki.com/public
- I already have this in my apache2 config file :
<Directory /var/www/dokuwiki>
RewriteEngine on
RewriteBase /
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
</Directory>
It works, but I can't figure out how to redirect users using "public.dokuwiki.com" to "public.dokuwiki.com/public" automatically.
Any idea?