Mediawiki htaccess url rewrite guide
From ETCwiki
Revision as of 20:07, 15 April 2010 by 68.33.228.154 (talk)
This is how ETCwiki uses the wiki URL rewrite. Running on Apache 2.2 this works.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^etcwiki.org [NC]
RewriteRule ^(.*)$ http://www.etcwiki.org/$1 [L,R=301]
RewriteRule ^wiki/(.*)$ /index.php?title=$1 [PT,L,QSA]
RewriteRule ^wiki/*$ /index.php [L,QSA]
RewriteRule ^/*$ /index.php [L,QSA]
RewriteRule .*\.ico$ - [L]