Thread:Manual talk:Short URL/Apache/DOCUMENT ROOT

In the description of the changes in httpd.conf, the following sequence of characters appear: DOCUMENT_ROOT

Is it somehow related with variable $wg used in the LocalSetting.php? Should this sequence of characters be replaced to something specific for my computer or it should be copypasted as is?

As I understand, in order to provide the Short URL, the following lines should be added to httpd.conf

RewriteEngine On RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L] RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L]
 * 1) http://www.mediawiki.org/wiki/Manual:Short_URL/Apache
 * 2) Enable the rewrite engine
 * 1) Short url for wiki pages
 * 1) Redirect / to Main Page

Should I add these lines at the end of file httpd.conf ? Domitori (talk) 12:40, 12 April 2013 (UTC)

P.S.: 'DOCUMENT_ROOT' is The document root directory under which the current script is executing, as defined in the server's configuration file.