Results 1 to 4 of 4

How to redirect mobile style to a subdomain?

This is a discussion on How to redirect mobile style to a subdomain? within the General Discussion forums, part of the vBSEO SEO Plugin category; Basically, I've installed the premium mobile suite for vBulletin and I want the mobile users to be redirected to mobile.forum.com ...

  1. #1
    Member
    Real Name
    Cezar
    Join Date
    Aug 2007
    Posts
    31
    Liked
    1 times

    How to redirect mobile style to a subdomain?

    Basically, I've installed the premium mobile suite for vBulletin and I want the mobile users to be redirected to mobile.forum.com instead of www.forum.com. Now, I've seen that I need to redirect the styleid but I don't know if I need to add something to vbseo or how do I do it. I have both vBCMS and forum (the publisher suite). The site root is the CMS.

    If I go to www.site.com/?styleid=2 for example, it doesn't go to the style 2.

    Any advice is appreciated.

  2. #2
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    Multiple domains are not supported. You can use mobile.site.com to point to www.site.com?styleid=2 if you wish, but it is not possible to USE mobile. as the actual url.

    Assuming the mobile subdomain points to the same public_html/ area as your forum (you can configure this at your host level) You can use something like

    RewriteCond %{HTTP_HOST} ^mobile\.yourdomain\.com$
    RewriteRule (.*) http://www.yourdomain.com/$1?styleid=2 [L,R=301]

    Above your main non-www to www rule in htaccess.

    If styleid=2 doesn't re-direct you, you need to consult vb support for that.

  3. #3
    Member
    Real Name
    Cezar
    Join Date
    Aug 2007
    Posts
    31
    Liked
    1 times
    actually, it's the opposite. when a user enters on my site on his mobile, they are detected and redirected to styleid=2, so basically, I need to redirect www.site.com?styleid=2 to m.site.com. Does it work the other way around?

  4. #4
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    As stated, this is not possible.

Similar Threads

  1. vBulletin 4.x Like tree and the mobile style
    By ceho in forum Troubleshooting
    Replies: 7
    Last Post: 12-19-2011, 01:10 PM
  2. Help getting out of the mobile style
    By TundraSoul in forum General Discussion
    Replies: 2
    Last Post: 05-18-2011, 10:57 PM
  3. likes + mobile style ?
    By baghdad4ever in forum Template Modifications
    Replies: 1
    Last Post: 05-10-2011, 05:35 PM
  4. vBulletin 4.x Mobile Style Help
    By bigtree in forum Troubleshooting
    Replies: 1
    Last Post: 03-12-2011, 04:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •