MediaWiki/archive/customizing/URLs

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< MediaWiki‎ | archive‎ | customizing
Revision as of 05:40, 10 June 2007 by 83.224.64.4 (talk)
Jump to navigation Jump to search

navbar

computing: software: web: MediaWiki: customization: shortening MediaWiki URLs

Overview

There are (at least) two "standard" ways of prettifying MediaWiki URLs, documented here.

There's also another way of doing it if you have access to httpd.conf or .htaccess. It's fairly tidy and quite flexible, though I don't know how much additional load it puts on the server (see brief discussion at the end).

Using mod_rewrite

This is probably documented elsewhere, but this is what actually worked for me on a shared server where I couldn't modify httpd.conf.

This assumes MediaWiki is installed in the root of the www pages.

First, the .htaccess file needs to include: