Help Me Develop My Idea/ Multi-City
-
New Pligger
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
-
New Pligger
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?
-
Pligg Developer

Originally Posted by
sammyman
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 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 will be taken directly to that category..
Hope that helps
-
New Pligger
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....
-
Pligg Developer
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.
-
Pligg Donor
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)
-
New Pligger

Originally Posted by
dollars5
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
-
By snowhills in forum Questions & Comments
Replies: 1
Last Post: 06-02-2011, 06:07 PM
-
By cwjacklin in forum Questions & Comments
Replies: 3
Last Post: 03-28-2009, 07:09 AM
-
By devplayer in forum Questions & Comments
Replies: 2
Last Post: 03-09-2007, 01:35 PM
-
By 24fan in forum Questions & Comments
Replies: 0
Last Post: 04-20-2006, 03:58 PM
-
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
-
Forum Rules