PDA

View Full Version : Making mediawiki the root document?


thk
June 20th, 2006, 11:56 AM
Anyone know how to make mediawiki come up by default rather than having to type /mediawiki? I've tried symlinking /var/lib/mediawiki/index.php to /var/www, but that does not work. I've tried Alias / /mediawiki, but that causes problems. I've tried Redirect ^/$ /mediawiki -- no luck there. I've tried .htaccess files. This ought to be simple.

jstueve
June 20th, 2006, 12:12 PM
I've done it using .htaccess. What did you try in .htaccess and is httpd.conf (or similar apache2.conf) allowing .htaccess to do rewrites? (AllowOverrides ?)

thk
June 20th, 2006, 01:05 PM
That's probably what I did wrong -- I must need a Directory entry in the apache config to allow overrides. I'll try again and post something. Did you use a Redirect in the .htaccess file?

thk
June 20th, 2006, 01:20 PM
Finally got it by putting

RedirectMatch ^/$ http://host/mediawiki/

in /etc/apache2/apache2.conf. I've no idea why

RewriteRule ^/$ /mediawiki/ [R]

does not work.