Discourse DB:Install log

From Discourse DB
Revision as of 17:15, August 11, 2006 by Ngrandy (talk | contribs)

(diff) ← Older revision | Approved revision (diff) | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

We have the following extensions installed (with version numbers):

  • ParserFunctions
  • StringFuctions
  • SemanticMediawiki
  • inputbox.php


We are using rewrites to eliminate index.php from URLs. Instructions are here:

http://meta.wikimedia.org/wiki/Rewrite_Rules

The method we are suing is this:


Using a rewrite rule in a .htaccess file

This method may be useful if you have the ability to use rewrite rules in .htaccess and don't have conf access but it is more work for the httpd.

  1. install mediawiki in the dir for www.mysite.com/w as normal (using the installer)
  2. set $wgArticlePath = "/wiki/$1"; in LocalSettings.php
  3. put a htaccess file with the following content in the dir for www.mysite.com
  1. close the php security hole...
  2. not actually needed but probably a good idea anyway

php_flag register_globals off

  1. first, enable the processing - Unless your ISP has it enabled
  2. already. That might cause weird errors.

RewriteEngine on

  1. uncomment this rule if you want Apache to redirect from www.mysite.com/ to
  2. www.mysite.com/wiki/Main_Page
  3. RewriteRule ^/$ /wiki/Main_Page [R]
  1. do the rewrite

RewriteRule ^wiki/?(.*)$ /w/index.php?title=$1 [L,QSA]

Make sure Apache loads the Rewrite module. In httpd.conf this line must be added/uncommented:

LoadModule rewrite_module modules/mod_rewrite.so