Results 1 to 4 of 4

vB4 and routing subdomains

This is a discussion on vB4 and routing subdomains within the General Discussion forums, part of the vBSEO SEO Plugin category; I'm trying to set up the following: letspoker.com => CMS forums.letspoker.com => Forums blogs.letspoker.com => Blogs I mapped all subdomains ...

  1. #1
    Junior Member
    Real Name
    jaanus kaljuvee
    Join Date
    Dec 2008
    Posts
    29
    Liked
    0 times

    vB4 and routing subdomains

    I'm trying to set up the following:

    letspoker.com => CMS
    forums.letspoker.com => Forums
    blogs.letspoker.com => Blogs

    I mapped all subdomains to the same directory as letspoker.com/ but obviously this setup can't work as all 3 domains will try to look for the same index.php

    Now I guess the only solution be to hack the index.php to route forums to forum.php, blogs to blog php and cms to ... uhm to the original index.php

    Please tell me there are better ways to do that.

    Thanks
    Last edited by jaz6ix; 05-24-2010 at 10:09 AM. Reason: removed anchors

  2. #2
    Senior Member
    Real Name
    Ceri May
    Join Date
    Jul 2009
    Location
    United Kingdom
    Posts
    1,726
    Liked
    15 times
    Blog Entries
    1
    Hey jaanus,

    This is possible using vBSEO, you need to set the standard vBulletin settings that the board is installed at forums.letspoker.com as the defauld bburl.

    Then in vBSEOCP set the "Custom CMS Domain" to letspoker.com and the "Custom Blog Domain" to blogs.letspoker.com

    vBSEO will do the rest for you

    Ceri

  3. #3
    Junior Member
    Real Name
    jaanus kaljuvee
    Join Date
    Dec 2008
    Posts
    29
    Liked
    0 times
    Quote Originally Posted by Ceri May View Post
    Hey jaanus,

    This is possible using vBSEO, you need to set the standard vBulletin settings that the board is installed at forums.letspoker.com as the defauld bburl.

    Then in vBSEOCP set the "Custom CMS Domain" to letspoker.com and the "Custom Blog Domain" to blogs.letspoker.com

    vBSEO will do the rest for you

    Ceri
    Thats exactly what I did. The problem arises when I want to change forums.letspoker.com/forum.php to just forums.letspoker.com and blogs.letspoker.com/blog.php to blogs.letspoker.com

    If I have to keep the subdirectories under subdomains then the whole setup is pointless and I might as well use only letspoker.com and put them under subdirectories

  4. #4
    Junior Member
    Real Name
    jaanus kaljuvee
    Join Date
    Dec 2008
    Posts
    29
    Liked
    0 times
    Ok I added this to the index.php and everything seems to be working -

    PHP Code:
    switch (strtolower($_SERVER['HTTP_HOST'])) {
      case 
    "letspoker.com":
        require(
    'content.php');
        break;
      case 
    "forums.letspoker.com":
        require(
    'forum.php');
        break;
      case 
    "blogs.letspoker.com":
        require(
    'blog.php');
        break;
      default:
        require(
    'content.php');

    It is a hack, but I don't think it will break anything other than upgrading vBulletin to newer version, which I can easily prevent by restoring the original index.php

    Comments?

Similar Threads

  1. Subdomains
    By kuyenmotdivad in forum Custom Rewrite Rules
    Replies: 14
    Last Post: 02-20-2010, 05:20 PM
  2. subdomains for each CMS section, possible?
    By Yellow Slider in forum Pre-Sales Questions
    Replies: 6
    Last Post: 01-18-2010, 04:59 AM
  3. how can i redirect subdomains
    By cgway.net in forum Custom Rewrite Rules
    Replies: 0
    Last Post: 10-12-2009, 08:38 PM
  4. Add-On domains and Subdomains
    By Kwak in forum General Discussion
    Replies: 1
    Last Post: 12-12-2007, 07:33 AM
  5. Subdomains
    By iahead in forum General Discussion
    Replies: 4
    Last Post: 01-24-2007, 05:21 AM

Posting Permissions

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