Httpd.conf-manipulation (for MediaWiki ShortURL)



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…

Bruno Rotondi

3. Edit httpd.conf to contain the rule Alias /wiki /path/to/your/wiki/index.php. Note that the second path is relative to the filesystem root, not the web root! This might be, for instance, Alias /wiki /var/www/w/index.php, if /var/www/ is your web root. This ALIAS configuration is a minimum configuration, see Apache configuration for further options.
4. Make Apache reread its configuration file (gracefully restart). You might use, for instance, apachectl graceful or a similar command as root, or use features of WebHost Manager or similar software.


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

[code]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][/code]
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


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.