Відмінності між версіями «Конфігурування»

Матеріал з Хронологія мовних подій в Україні: зовнішня історія української мови
Перейти до: навігація, пошук
(Створена сторінка: === Короткі URL === http://www.mediawiki.org/wiki/Manual:Short_URL/wiki/Page_title_--_no_root_access The following setting was added in LocalSettings.php.…)
 
Рядок 1: Рядок 1:
=== Короткі URL ===
+
== Upload ==
 +
http://www.mediawiki.org/wiki/Upload
 +
 
 +
The attribute was set in LocalSettings.php and is as follows:
 +
$wgEnableUploads = true; # Enable uploads
 +
 
 +
== Короткі URL ==
  
 
http://www.mediawiki.org/wiki/Manual:Short_URL/wiki/Page_title_--_no_root_access
 
http://www.mediawiki.org/wiki/Manual:Short_URL/wiki/Page_title_--_no_root_access

Версія за 21:35, 4 жовтня 2009

Upload

http://www.mediawiki.org/wiki/Upload

The attribute was set in LocalSettings.php and is as follows:

$wgEnableUploads = true; # Enable uploads

Короткі 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]