I am trying to do rather basic URL rewriting but cannot get it running properly.

I want to redirect all requests to `wordpress.foobar.com` to a local symlinked WordPress installation via my `.htaccess` file:

```
RewriteEngine On

RewriteCond %{SERVER_NAME} ^wordpress\.foobar\.com$
RewriteRule ^(.*) /html/wordpress/$1 [L]

```

While I can perfectly access `foobar.com/html/wordpress`, visiting `wordpress.foobar.com` will raise a 500 Internal Server Error.

Apache's error log will contain the following:

```
[error] [client 12.123.123.123] Request exceeded the limit of 10 internal redirects due to
probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get
 a backtrace.

```

When I enable debug LogLevel I can see that Apache is trying to rewrite `favicon.ico` infinitely, always appending another layer of `/html/wordpress/` until the recursion limit is reached.

What's wrong with this rewrite?