Rewrite-dispatch for Mediawiki and Quercus

From Resin 3.0

Jump to: navigation, search

Resin's rewrite rules for Mediawiki need to pass through any *.php, *.css and *.js or any image in /images/*. The <dispatch> rule tells <rewrite-dispatch> to use Resin's normal URL handling, i.e. handle the php file or image itself. All other URLs changed to /index.php/Foo.


 <web-app xmlns="">

        <dispatch regexp="\.(php|css|js)"/>
        <dispatch regexp="^/images"/>
        <forward regexp="^" target="/index.php"/>

Personal tools