[wp-hackers] Multisite w/ Subdomain issues

Ryan Bilesky rbilesky at gmail.com
Thu Oct 21 19:19:45 UTC 2010


I have found this is caused by page rewrite rules, they are verbose.  I am
planning to work around this by dulplicating pages into the mobile site's
posts table (without content to kee pthe size down) this will cause the
necessary rewrite rules to be added to the site to get it to actually show
the page and the content from my main blogs table will be what is shown.
I discovered this because my about page works, since an about page is
created with the new blog.  And a plugin that shows my rewrite rules shows
me I am using verbose page rewrite rules.

On Wed, Oct 20, 2010 at 7:19 PM, Ryan Bilesky <rbilesky at gmail.com> wrote:

> This has caused 1 minor problem.  Posts work fine, pages don't it appears
> thats because my site is setup with verbose page rewrite rules, so I just
> need to modify the page rewrite rules to match that of the main site.
>
>
> On Wed, Oct 20, 2010 at 6:33 PM, Ryan Bilesky <rbilesky at gmail.com> wrote:
>
>> Actually I can do one better, there is a generic sql filter called query
>> using that I am replacing wp_3_table with wp_table for posts, postmeta,
>> comments, commentmeta.
>>
>>
>> On Wed, Oct 20, 2010 at 6:12 PM, Ryan Bilesky <rbilesky at gmail.com> wrote:
>>
>>> I did find a filter posts_request, which affects the query to get a post,
>>> then I just str_replace() the sql to replace wp_(blog id)_posts with
>>> wp_(posts).  Works perfect but it only affects the query used when viewing a
>>> single post.  If I can find other filters like this that deal with getting
>>> the posts I might be able to make this work without switch_to_blog.
>>>
>>>
>>> On Wed, Oct 20, 2010 at 12:29 PM, Ryan Bilesky <rbilesky at gmail.com>wrote:
>>>
>>>> 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.com without 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.comwith 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