Rewrite-dispatch for Mediawiki and Quercus
From Resin 3.0
(Difference between revisions)
(New page: Category: HowTo 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 Resi...) |
m (Rewrite-dispatch configuration for Mediawiki moved to Rewrite-dispatch for Mediawiki and Quercus) |
||
(One intermediate revision by one user not shown) | |||
Line 3: | Line 3: | ||
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. | 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-INF/resin-web.xml === | |
<web-app xmlns="http://caucho.com/ns/resin"> | <web-app xmlns="http://caucho.com/ns/resin"> |
Latest revision as of 19:22, 14 January 2009
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.
[edit] WEB-INF/resin-web.xml
<web-app xmlns="http://caucho.com/ns/resin"> <rewrite-dispatch> <dispatch regexp="\.(php|css|js)"/> <dispatch regexp="^/images"/> <forward regexp="^" target="/index.php"/> </rewrite-dispatch> </web-app>