##########################################
Auszug aus der vhost.conf
##########################################
<Directory "/my/path/htdocs">
Order allow,deny
Allow from all
Options Indexes FollowSymLinks
AllowOverride None
RewriteEngine On
# avoid recursive crap resulting in a 500
RewriteRule ^/?my/path/foobar/main.php$ - [L]
# route any call to a (physically) inexisting file to the handler
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !^/?(styles|ads|js)
RewriteRule ^(.*)$ /my/path/foobar/main.php [L]
</Directory>
##########################################
Auszug aus my.vhost_error.log
##########################################
127.0.0.1 - - [10/Jan/2008:14:48:54 +0100] [my.vhost/sid#822630][rid#939c50/initial] (2) init rewrite engine with requested uri /asdasd
127.0.0.1 - - [10/Jan/2008:14:48:54 +0100] [my.vhost/sid#822630][rid#939c50/initial] (1) pass through /asdasd
127.0.0.1 - - [10/Jan/2008:14:48:54 +0100] [my.vhost/sid#822630][rid#939c50/initial] (3) [perdir /my/path/htdocs/] strip per-dir prefix: /my/path/htdocs/asdasd -> asdasd
127.0.0.1 - - [10/Jan/2008:14:48:54 +0100] [my.vhost/sid#822630][rid#939c50/initial] (3) [perdir /my/path/htdocs/] applying pattern '^/?my/path/foobar/main.php$' to uri 'asdasd'
127.0.0.1 - - [10/Jan/2008:14:48:54 +0100] [my.vhost/sid#822630][rid#939c50/initial] (3) [perdir /my/path/htdocs/] strip per-dir prefix: /my/path/htdocs/asdasd -> asdasd
127.0.0.1 - - [10/Jan/2008:14:48:54 +0100] [my.vhost/sid#822630][rid#939c50/initial] (3) [perdir /my/path/htdocs/] applying pattern '^(.*)$' to uri 'asdasd'
127.0.0.1 - - [10/Jan/2008:14:48:54 +0100] [my.vhost/sid#822630][rid#939c50/initial] (4) [perdir /my/path/htdocs/] RewriteCond: input='/my/path/htdocs/asdasd' pattern='!-f' => matched
127.0.0.1 - - [10/Jan/2008:14:48:54 +0100] [my.vhost/sid#822630][rid#939c50/initial] (4) [perdir /my/path/htdocs/] RewriteCond: input='/my/path/htdocs/asdasd' pattern='!^/?(styles|ads|js)' => matched
127.0.0.1 - - [10/Jan/2008:14:48:54 +0100] [my.vhost/sid#822630][rid#939c50/initial] (2) [perdir /my/path/htdocs/] rewrite 'asdasd' -> '/my/path/foobar/main.php'
127.0.0.1 - - [10/Jan/2008:14:48:54 +0100] [my.vhost/sid#822630][rid#939c50/initial] (1) [perdir /my/path/htdocs/] internal redirect with /my/path/foobar/main.php [INTERNAL REDIRECT]
Keine Endlosschleife *juhu*
127.0.0.1 - - [10/Jan/2008:14:48:54 +0100] [my.vhost/sid#822630][rid#93f358/initial/redir#1] (2) init rewrite engine with requested uri /my/path/foobar/main.php
127.0.0.1 - - [10/Jan/2008:14:48:54 +0100] [my.vhost/sid#822630][rid#93f358/initial/redir#1] (1) pass through /my/path/foobar/main.php
127.0.0.1 - - [10/Jan/2008:14:48:54 +0100] [my.vhost/sid#822630][rid#93f358/initial/redir#1] (3) [perdir /my/path/htdocs/] add path info postfix: /my/path/htdocs/my -> /my/path/htdocs/my/path/foobar/main.php
127.0.0.1 - - [10/Jan/2008:14:48:54 +0100] [my.vhost/sid#822630][rid#93f358/initial/redir#1] (3) [perdir /my/path/htdocs/] strip per-dir prefix: /my/path/htdocs/my/path/foobar/main.php -> my/path/foobar/main.php
127.0.0.1 - - [10/Jan/2008:14:48:54 +0100] [my.vhost/sid#822630][rid#93f358/initial/redir#1] (3) [perdir /my/path/htdocs/] applying pattern '^/?my/path/foobar/main.php$' to uri 'my/path/foobar/main.php'
127.0.0.1 - - [10/Jan/2008:14:48:54 +0100] [my.vhost/sid#822630][rid#93f358/initial/redir#1] (1) [perdir /my/path/htdocs/] pass through /my/path/htdocs/my
##########################################
Auszug aus my.vhost_error.log
##########################################
[Thu Jan 10 14:48:54 2008] [error] [client 127.0.0.1] File does not exist: /my/path/htdocs/my