|
Cookbook /
CustomRedirectsSummary: This recipe modifies the behavior of PmWiki's
redirect markupVersion: v1.0.0
Prerequisites: PmWiki v2.1.0, possibly earlier
Status: Stable
Maintainer: Ryan Varick
Categories:
QuestionIs it possible to modify the behavior of PmWiki's AnswerYes! The
Usually, authors will want to use either 301 or 307. For convenience, PmWiki appends This recipe prevents PmWiki from appending anything to the URL when a 301 status code is requested. As a side effect, this recipe groups relevant redirect code into a single file, making it easy to further customize the behavior of InstallationFirst, download redirect.phpΔ to your include_once('cookbook/redirect.php');
You're done! To omit query strings on redirects, use: (:redirect New.Page status=301:)
Notes
See AlsoRedirectSilent RedirectIntermap Comments |