AliasMatch ^/dokuwiki/sites/[^/]+$ /opt/dokuwiki/ AliasMatch ^/dokuwiki/sites/[^/]+/(.*)$ /opt/dokuwiki/$1 Alias /dokuwiki /opt/dokuwiki/ Options +FollowSymLinks AllowOverride All order allow,deny Allow from all # Uncomment to implement server-side URL rewriting # (cf. ). # Do *not* mix that with multisite! #RewriteEngine on #RewriteBase /dokuwiki #RewriteRule ^lib - [L] #RewriteRule ^doku.php - [L] #RewriteRule ^feed.php - [L] #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] #RewriteRule (.*) doku.php?id=$1 [QSA,L] Deny from all Deny from all DocumentRoot /opt/dokuwiki/ ServerName wiki.domain.ru