[Mediawiki-l] Redirection with "Location" header?

Brion Vibber brion at pobox.com
Wed Jul 7 02:27:51 UTC 2004

Andreas Schwarz wrote:
> is it possible to use a Location header for redirects?

If you really want this, you might try adding a fake interwiki prefix 
that points back at your wiki:

INSERT INTO interwiki (iw_prefix,iw_url)
   VALUES ('redirect', 'http://your.wiki.site/index.php/$1');

Then make redirects like this:

#REDIRECT [[redirect:Some other page]]

This should enable the interwiki redirect mode, which uses a Location: 
header. Be warned though that these are a pain in the ass: you can't 
easily get back to edit the source page because there's no backlink.

-- brion vibber (brion @ pobox.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : http://lists.wikimedia.org/pipermail/mediawiki-l/attachments/20040706/bd9053ca/attachment.pgp 

More information about the MediaWiki-l mailing list