|
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: Obsolete
QuestionIs it possible to modify the behavior of PmWiki's Answer Note: PmWiki core's redirect markup now accepts the Yes! 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 AlsoComments
User notes?: If you use, used or reviewed this recipe, you can add your name. The following format is recognized:
* (+) Optional positive comment. Name, date * (-) Optional negative comment. Name, date These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki. |