[Moin-user] cgiwrap gives ugly URLs, can it be fixed?
reid at reidster.net
Wed May 17 12:29:02 EDT 2006
Gary Oberbrunner wrote:
> Hi folks, it's my first post to this list. I've looked through the archives
> and on the wiki and can't find anything relevant, so I am posting here.
> I am on a host that requires using cgiwrap so that moin.cgi will as my userid,
> saving the caches and pages so they can be edited by that same userid (I can't
> edit pages saved by the httpd user). My wiki URLs have to look like this:
> I would prefer users to use something like this:
> http://www.scons.org/wiki/FrontPage, but I can't make that work.
> I have no trouble using mod_rewrite in my .htaccess to rewrite /wiki/FrontPage
> to the above ugly URL, but when I do that the links in the returned wiki pages
> all still have that long ugly form (I guess moin.cgi is looking at its own URL
> and using that as the base for the links, and it sees its "real" url, after
> mod_rewrite has rewritten it). Is there a way in the config file or by
> changing the code to have the generated HTML make wiki URLs using my
> /wiki/FooPage syntax?
My $0.02: that's a bug in MoinMoin. It shouldn't need to generate
absolute URLS at all -- relative ones are sufficient (e.g., <a
href="../FrontPage">, not <a href="http://foo.bar/wiki/FrontPage>).
So, if you hack the source, do it right and submit a patch. :)
More information about the Moin-user