Results 1 to 7 of 7
  1. #1
    New Pligger sammyman's Avatar
    Joined
    May 2008
    Posts
    4

    Subdomain help

    I just found pligg.com today and I am really excited. I want to create a pligg site with a few cities as different categories. Could I have each city be a category, with subcategories for each city as well? I want to have the homepage default to the bay area, or have a list of a handful of cities that people can pligg on. Will this work? How should I go about making a multi-city pligg useful? Thanks!

    I would love to eventually have:

    sf.mysite.com
    seattle.mysite.com
    ny.mysite.com

  2. #2
    New Pligger sammyman's Avatar
    Joined
    May 2008
    Posts
    4
    I created a bunch of categories, and have the re-write #2 on, so the categories are as follows:

    www.mysite.com/category/sfbay
    www.mysite.com/category/la

    The problem is that when I create a subdomain, there are no real files at category/sfbay. Is there a way to have separate subdomains for each category?

  3. #3
    Pligg Developer chuckroast's Avatar
    Joined
    Jun 2006
    Posts
    5,478
    Quote Originally Posted by sammyman View Post
    I created a bunch of categories, and have the re-write #2 on, so the categories are as follows:

    www.mysite.com/category/sfbay
    www.mysite.com/category/la

    The problem is that when I create a subdomain, there are no real files at category/sfbay. Is there a way to have separate subdomains for each category?

    What I would do is create each location as it's own category then create a subdomain like
    Code:
    sfbay.mysite.com
    Then in the subfolder /sfbay create an index.php file and use the following
    Code:
    <?php
    header( 'Location: http://mysite.com/category/sfbay ) ;
    ?>
    This way anyone going to
    Code:
    sfbay.mysite.com
    will be taken directly to that category..

    Hope that helps

  4. #4
    New Pligger sammyman's Avatar
    Joined
    May 2008
    Posts
    4
    That does help quite a bit. Thank you. I got some error for some reason at first, but now it looks like it is working.

    I wonder if there is some re-writing in the .htaccess that could keep it as a subdomain (sfbay.mysite.com), rather than forwarding. I think this could help the SEO of the site....

  5. #5
    Pligg Developer chuckroast's Avatar
    Joined
    Jun 2006
    Posts
    5,478
    Yes you are right, there are really several ways to go about this, but from my experience most will give you the same result in the end.

  6. #6
    Pligg Donor dollars5's Avatar
    Joined
    Dec 2006
    Posts
    1,960
    If you are to do using sub-domains - you first need to add an entry for the virtual sub-domains as well - I guess that will go into the http.conf file. This will be simpler than actually creating sub-domains and maintaining them (when you port or upgrade to a new server - it will then turn to a pain in a$$ - but if you just use the combination of http.conf and .htaccess - migration will be smooth as well)

  7. #7
    New Pligger sammyman's Avatar
    Joined
    May 2008
    Posts
    4
    Quote Originally Posted by dollars5 View Post
    If you are to do using sub-domains - you first need to add an entry for the virtual sub-domains as well - I guess that will go into the http.conf file. This will be simpler than actually creating sub-domains and maintaining them (when you port or upgrade to a new server - it will then turn to a pain in a$$ - but if you just use the combination of http.conf and .htaccess - migration will be smooth as well)
    That sounds way cool, but I don't think I am savy enough to pull it off myself. Can anyone help me figure the http.conf and .htaccess files as shown above?

Similar Threads

  1. I want to develop a cool module just like Baidu vane ...
    By snowhills in forum Questions & Comments
    Replies: 1
    Last Post: 06-02-2011, 06:07 PM
  2. what editor do you use to develop templates?
    By cwjacklin in forum Questions & Comments
    Replies: 3
    Last Post: 03-28-2009, 07:09 AM
  3. Multi language?
    By devplayer in forum Questions & Comments
    Replies: 2
    Last Post: 03-09-2007, 01:35 PM
  4. Want to develop a Pligg site for pay?
    By 24fan in forum Questions & Comments
    Replies: 0
    Last Post: 04-20-2006, 03:58 PM
  5. Will you develop a site for pay?
    By WhoLetTheBlogsOut in forum Questions & Comments
    Replies: 0
    Last Post: 04-08-2006, 01:03 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
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting