[pmwiki-users] {$UrlPage}

H. Fox haganfox at users.sourceforge.net
Thu Oct 20 18:24:56 CDT 2005


On 10/20/05, Waylan Limberg <waylan at gmail.com> wrote:
> > PmWiki already uses a "302 Found" status code in the case of (:redirect:).
> > I suppose it could be a "301 Moved Permanently" response, but I'm
> > a little reluctant to assume that such urls are always, automatically,
> > and irrevocably "permanently moved".
> >
> >
> Hmm, good point. Maybe we could use some other markup to indicate a
> permanent move. Then, on second thought... If a page is truely
> permanently moved, wouldn't the old location no longer exist? Where
> would one use (:redirect:) of some alternate markup? Maybe another
> list? Site.MovedPages? This just seems to be getting more and more
> complex, doesn't it?

It's not unusual have complex discussion that eventually leads to a
simple solution.

The solution for Status Codes could wind up being something as simple
as having a Site/StatusCodePage with markup like

    !! 404 - Not Found
      Main.SomePage
      Main.SomeOtherPage

    !! 301 - Moved Permanently
      Main.SomeOldPage => Main.SomeNewPage
      SomeGroup.SomeGroup => SomeGroup.HomePage

or something along those lines.

Hagan




More information about the pmwiki-users mailing list