Конфігурування
Матеріал з Хронологія мовних подій в Україні: зовнішня історія української мови
Версія від 19:22, 4 жовтня 2009, створена WikiSysop (обговорення • внесок) (Створена сторінка: === Короткі URL === http://www.mediawiki.org/wiki/Manual:Short_URL/wiki/Page_title_--_no_root_access The following setting was added in LocalSettings.php.…)
Короткі URL
http://www.mediawiki.org/wiki/Manual:Short_URL/wiki/Page_title_--_no_root_access
The following setting was added in LocalSettings.php. This caused the HTML generated by MediaWiki to refer to "/wiki/Articlename" instead of the default:
$wgScriptPath = ""; # Path to the actual files (right part of first rewrite rule). Should already be in LocalSettings.php $wgArticlePath = "/wiki/$1"; # Virtual path (left part of first rewrite rule). MUST be DIFFERENT from the path above! $wgUsePathInfo = true;
.htaccess in the web root directory was edited by adding:
RewriteEngine On RewriteRule ^wiki/(.*)$ /index.php?title=$1 [PT,L,QSA] RewriteRule ^wiki/*$ /index.php [L,QSA] RewriteRule ^/*$ /index.php [L,QSA]