Hi,
it is possible to redirect every request to a php script which can then decide what to do e.g. depending on the user agent with:
RewriteEngine on
RewriteBase /directory
RewriteRule ^ rewrite.php [T=application/x-httpd-php]
The second line tells apache to apply the Rule to all request to /directory and it's subdirectories.
The third line tells apache to redirect every request to a page to rewrite.php. Additionally it changes the mime type to suite the rewrite.php mime type.
The script then can determine which url has been requested and do whatever it wants with it, e.g. include the page originally requested.
This is the simplest rule, you might want to add more rules to suite your needs.
Rgards,
Thomas
P.S.: I love Karlsruhe, too!