Summary: Redirect pages without messages and without modifying links
Version: 1.1
Status: Working
Maintainer: GNUZoo

Questions answered by this recipe

How to get rid of the redirect message and get rid of the "?from=pagename" in links


Remove redirect message PMWiki displays in a page is easy with just setting

    $PageRedirectFmt = '';

The hard part is changing the URL so it does not show that same information

I dispute that this recipe is obsolete. It is different than the "$EnableRedirectQuiet" method in that this recipe does not require any adjustment to any redirect directive. It removes ALL "?from=pagename" in links. The newer method requires EVERY redirect directive to be modified with quiet=1. Can we make it so that if "$EnableRedirectQuiet" is set to 2 that it disables all "?from=pagename" in links so we do not have to adjust it in every redirect directive?

There is an issue from this rescipe that makes it semi-obsolete. It displays an error message:

   Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead:

This could be modified and fixed and would work as described.



Note: From version 2.2.1, PmWiki core's redirect markup now accepts the quiet=1 additional parameter. See $EnableRedirectQuiet.

This recipe is based on CustomRedirects. This recipe requires no custom parameters in the (:redirect:) markup like CustomRedirects does. Every link is clean and no "redirected from" message is displayed on the page.


Copy RedirectSilent.phpΔ to your cookbook directory.

In your config.php:


or in your farmconfig.php enter:



Release Notes

This program is free software. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation either version 2 of the License, or (at your option) any later version.

Copyright 2007 by GNUZoo email: guru [snail] gnuzoo [period] org

Please donate to the author at url:

  • Version 1.0 - Initial Release


See Also


User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.