Rene Schickbauer

NAME

Maplat::Web::PathRedirection - redirect web access to other pages

SYNOPSIS

Prefilter access to pages and redirect the calls to other pages.

DESCRIPTION

This module prefilters access to maplat webpages and redirects the browser to other pages if necessary. This is very usefull in fixing broken links and also work around common user errors and stale bookmarks.

Configuration

        <module>
                <modname>pathcorrection</modname>
                <pm>PathRedirection</pm>
                <options>
                        <redirect>
                                <source>/</source>
                                <destination>/user/login</destination>
                                <statuscode>307</statuscode>
                                <statustext>Please use the login module</statustext>
                        </redirect>
                        <redirect>
                                <source>/dev/search</source>
                                <destination>/user/search</destination>
                                <statuscode>301</statuscode>
                                <statustext>Out of BETA - Moved permanently to user namespace</statustext>
                        </redirect>
                </options>
        </module>

It is recommended to use this module as a "fallback", e.g. configure it after nearly all other modules. The only module that should follow is the BrowserWorkarounds module (mostly to fix redirects for broken browsers like firefox)

prefilter

Internal function.

Dependencies

This module does not depend directly on any other module, but it SHOULD be used in conjunction with the BrowserWorksarounds module to give a smooth ride with different browsers.

SEE ALSO

Maplat::Web Maplat::Web::BrowserWorksarounds

AUTHOR

Rene Schickbauer, <rene.schickbauer@gmail.com>

COPYRIGHT AND LICENSE

Copyright (C) 2008-2011 by Rene Schickbauer

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.