...

View Full Version : How is this redirect working ?



jeddi
01-13-2012, 07:07 PM
Hi,

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

http://mobi6.net/?pbcezmobsite=enricopizza

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.
http://mobi6.net/?pbcezmobsite=enricopizza

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


.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum