Dokuwiki - как изменить URL главной страницы - htaccess - apache: различия между версиями
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Admin iph (обсуждение | вклад) (Новая страница: «=== Dokuwiki - как изменить URL главной страницы - htaccess - apache === 1) Отредактировать '''conf/local.php''' $conf...») |
Admin iph (обсуждение | вклад) |
||
Строка 16: | Строка 16: | ||
RewriteCond %{REQUEST_FILENAME} !-d | RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteRule (.*) doku.php?id=$1 [QSA,L] | RewriteRule (.*) doku.php?id=$1 [QSA,L] | ||
+ | |||
+ | |||
+ | Теперь главная страница будет работать через | ||
+ | https://site.net |
Текущая версия на 14:13, 29 мая 2024
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