-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Anthony wrote:
On 8/18/07, Simetrical
<Simetrical+wikilist(a)gmail.com> wrote:
So there's no way to do any of this without
prettified URLs, I don't
think, short of listing every possible page. Or you could hack up the
code to make URLs look like ?action=edit&title=Foo instead of the
reverse.
Way back in the day I separated out index.php and edit.php for exactly
this reason. I later changed it to
http://mydomain/edit/Title when I
went to pretty urls, but the original poster asked what to use
"_without_ worrying about making pretty URLs". cp index.php to
edit.php and hack up the code to change the URL would work. I don't
know if your solution would work or not
Something like this should do:
$wgActionPaths['edit'] = "/edit.php?title=$1";
where edit.php consists of:
<?php
$_REQUEST['action'] = 'edit';
require './index.php';
?>
(don't know if the robots.txt
spec allows you to distinguish based on get parameters if they appear
at the beginning).
robots.txt spec is pretty primitive and only allows for specifying
complete prefixes.
- -- brion vibber (brion @
wikimedia.org)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org
iD8DBQFGyYz5wRnhpk1wk44RAmsNAJ0WUC+MFqXj0PA30bPkVKLtOVHJdQCff9Tx
6cyK0zXx9NHSki4uJ3tkNio=
=EjLa
-----END PGP SIGNATURE-----