httpd.conf-manipulation (for MediaWiki ShortURL)

httpd.conf-manipulation (for MediaWiki ShortURL)

Posted by: BRotondi
Posted on: 2009-03-05 00:02:00

Hello!

I managed to enable ShortURL on MediaWiki with the No root access solution.
I think the attached steps 3 and 4 from the recommended Method are not configurable for us, since we have no acces to the httpd.conf ...

Is this right? The alternate method has some restrictions, so de recommended would be better...

Thanks!
Bruno Rotondi

Re: httpd.conf-manipulation (for MediaWiki ShortURL)

Posted by: misterhaan
Posted on: 2009-03-05 07:41:00

i installed mediawiki to /wiki/ on a subdomain wiki.track7.org, and put this in .htaccess to get urls like http://wiki.track7.org/articlename to work (my home article is named Contents -- not sure if that's the default):

RewriteEngine On
# anything that exists should be left alone
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule .* - [L]
# redirect to main page
RewriteRule ^/*$ /wiki/index.php?title=Contents [L,QSA]
# anything else is to be treated as a title
RewriteRule ^(. )$ /wiki/index.php?title=$1 [L,QSA]


not sure if that's what you're looking for, but i'm pretty sure we can't set up an apache alias -- we definitely don't have access to httpd.conf.

in LocalSettings.php i have these settings:

$wgScriptPath       = "/wiki";
$wgArticlePath = "/$1";


track7 - my dream-hosted site

Re: httpd.conf-manipulation (for MediaWiki ShortURL)

Posted by: BRotondi
Posted on: 2009-03-05 08:15:00

Thanks for you reply. I got it to work a similar way (as linked above), but was not sure, if this really is the only way.

Bruno

Tags: web rootapache configurationserver timealiasmanipulationbrunoaccesmediawiki