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
" 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
" 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.
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.
In your config.php:
or in your farmconfig.php enter:
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 http://www.fsf.org 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: http://gnuzoo.org/GNUZooPayPal
- Version 1.0 - Initial Release