View Full Version : How is this redirect working ?

01-13-2012, 08:07 PM

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 :rolleyes:

So in the .htaccess I have:

RewriteCond %{HTTP_HOST} ^([^.]+).mobi6.net [NC]
RewriteCond %{HTTP_HOST} !^www.mobi6.net [NC]
RewriteRule ^.*$ /?pbcezmobsite=%1 [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 ? :confused:

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 :)