Dokuwiki - как изменить URL главной страницы - htaccess - apache
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2026
Dokuwiki - как изменить URL главной страницы - htaccess - apache
1) Отредактировать conf/local.php
$conf['start'] = 'site'; $conf['userewrite'] = 1;
2) Отредактировать .htaccess файл к виду:
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]
Теперь главная страница будет работать через
https://site.net
