Differences

This shows you the differences between two versions of the page.

Link to this comparison view

mediawiki [2009/05/25 00:35]
mediawiki [2009/05/25 00:35] (current)
Line 1: Line 1:
 +====== Mediawiki Tips ======
 +
 +   * [[http://www.mediawiki.org/wiki/MediaWiki]]
 +
 +=====  using very short URLs =====
 +
 +a good page to start: [[http://meta.wikimedia.org/wiki/Using_a_very_short_URL]]; configuration below tested with Apache 2.0.x on Debian Sarge and Mediwiki 1.6.x.
 +
 +**''/etc/apache/sites/site.conf''**
 +   <Virtualhost IP>
 +      .....
 +      RewriteEngine On
 +      RewriteCond %{REQUEST_URI} !^/(stylesheets|images|skins|data)/
 +      RewriteCond %{REQUEST_URI} !^/(redirect|texvc|index).php
 +      RewriteCond %{REQUEST_URI} !^/error/(40(1|3|4)|500).html
 +      RewriteCond %{REQUEST_URI} !^/favicon.ico
 +      RewriteCond %{REQUEST_URI} !^/robots.txt
 +      RewriteRule ^/(.*)$ /index.php/$1 [L,QSA]
 +      
 +   </Virtualhost IP>
 +
 +
 +**''LocalSettings.php''**
 +   $wgScriptPath       = "";
 +   $wgScript           = "$wgScriptPath/index.php";
 +   $wgRedirectScript   = "$wgScriptPath/redirect.php";
 +   $wgArticlePath      = "/$1";
  
mediawiki.txt ยท Last modified: 2009/05/25 00:35 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready