[dokuwiki] Re: URL rewriting: page prefix?

  • From: Adrian Lang <mail@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 25 May 2011 10:14:10 +0200

Hi Tanguy,

On Mon, 16 May 2011 13:01:58 +0200
Tanguy Ortolo <tanguy+dokuwiki@xxxxxxxxx> wrote:

> I guess the same problem was detected some time ago for MediaWiki, and
> they solved it by making all the wiki pages available under a /wiki
> namespace, for instance: <http://en.wikipedia.org/wiki/DokuWiki>.

I very much dislike URLs like those, but …

> I tried to test this on a test installation of DokuWiki: pages become
> available at something like /dokuwiki/wiki/page, but internal links
> are still generated without the prefix, like /dokuwiki/otherpage.
> Would it be possible to allow this kind of rewriting, for instance by
> setting $userewrite="wiki";
> or perhaps
>     $userewrite=1;
>     $pagesprefix="wiki";
> where "wiki" may be replaced by another prefix to the user's choice (I
> personally prefer "pages")?

it should probably at least be possible without hacking core. We’d need
an easy way to extend the URL building.

Regards,
Adrian
--
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: