I am running a wordpress multisite which is written in php
and to access one of the sites, I use this:


And it works ... the link takes me to the mobile site.

Now I want to set up a mod_rewrite to send a sub-domain style url to this location.

Should be pretty simple

So in the .htaccess I have:

PHP Code:
RewriteCond %{HTTP_HOST} ^([^.]+).mobi6.net [NC]
RewriteCond %{HTTP_HOST} !^www.mobi6.net [NC]
RewriteRule ^.*$ /?pbcezmobsite=%[QSA,L

But when I run: http://enricopizza.mobi6.net/

I get :

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

My server has
ServerAlias *.mobi6.net

in the apache configuration file.
So it should work.

Any ideas how I find out whats wrong ?

Also I was looking to try and understand that redirect.

I looked in the index.php and then some of the includes but haven't found anything that could follow that re-direct.

Thanks for any help