ShortURL

From OpenOffice.org Wiki

Jump to: navigation, search
PAGE_TITLE: U2hvcnRVUkw=

The Short URL functionality is a "must have" for all wiki updates (used in previous OOoWiki releases, and must be maintained or external links into the wiki will be broken)

To enable Short URL on the new wiki:

Edit /opt/coolstack/apache2/conf/httpd.conf and add these Aliases. Remove any other Alias statements that reference the wiki.

 Alias /w /space/mwiki
 Alias /mwiki /space/mwiki
 Alias /wiki /space/mwiki/index.php
 Alias /index.php /space/mwiki/index.php
Image:documentation_note.pngThe Alias /mwiki is necessary for legacy reasons. The old OOoWiki used /mwiki as the Script Path. Many external pages link to OOoWiki paths that include /mwiki. If thsi Alias is not included, thos external links end in an error page, and generate errors in the apache error_log.

Edit LocalSettings.php and add/change these lines:

 $wgScriptPath       = "/w";
 $wgScript = "$wgScriptPath/index.php";
 $wgArticlePath = "/wiki/$1";
 $wgStylePath = "$wgScriptPath/skins";
 $wgStyleDirectory = "$IP/skins";

The LocalSettings.php variable $wgScriptPath can be set to anything as long as you match that variable setting with an Alias in the httpd.conf. eg If you set $wgScriptPath = "/foo"; in LocalSettings.php then you must set Alias /foo /space/mwiki in httpd.conf.

You must set the Style variables or the wiki skins will not be loaded when you view a wiki page.

Image:documentation_note.pngThe Short URL documentation states that on MediaWiki version 1.11 you must also set $wgUsePathInfo = false;. If this variable is set to false, it sends the wiki into a redirect loop and no wiki pages can be loaded.
Personal tools
Create a book