[wp-hackers] Multisite w/ Subdomain issues

Ryan Bilesky rbilesky at gmail.com
Wed Oct 20 19:29:26 UTC 2010


I do have a plugin on my main blog that is supposed to detect mobile
user-agents or the use of the m.mysite.com domain and switch to a mobile
theme.  I'm just not sure how I can make m.mysite.com access
mysite.comwithout redircting it, thus loosing the m subdomain that
would kick in the
mobile theme.

On Wed, Oct 20, 2010 at 4:25 AM, Peter Westwood
<peter.westwood at ftwr.co.uk>wrote:

>
> On 20 Oct 2010, at 11:56, Alex Hempton-Smith wrote:
>
> > I've tried this before and it's difficult with multi-site set up.
> >
> > I guess the question is, how do we 'jump in' before WordPress serves up
> the
> > registration page at m.example.com and instead serve up example.com with
> a
> > different theme?
> >
> > Because, once we set up subdomain wildcards, WP is running the show then?
> >
> >
>
> I guess the answer would be to put some code in sunrise.php to make WP
> believe that the current blog is the one you want it to in this case and
> make it use the right theme
>
> Cheers
> --
> Peter Westwood
> http://blog.ftwr.co.uk | http://westi.wordpress.com
> C53C F8FC 8796 8508 88D6 C950 54F4 5DCD A834 01C5
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list