envexlabs Posted July 10, 2008 Share Posted July 10, 2008 Hey, I am working on a site for a client and i could use a little help. We have a company that sells cars, lets call it CARS Inc. There are other dealers that sell CARS products. I want to be able to allow dealers to have a site that's http://carsinc.com/dealer1 I was hoping to just create one and and use /dealer1 to grab a variable that loads all that dealers information on the site, instead of creating a different folder for each dealer. What would be the best way to store that dealers id when a user visits the site. Thanks, envex Link to comment https://forums.phpfreaks.com/topic/114135-setting-up-sub-sites/ Share on other sites More sharing options...
DarkWater Posted July 10, 2008 Share Posted July 10, 2008 Create the ID in the database obviously, then make a dealer.php page that takes a dealer name and finds the info for it, then use mod_rewrite to send that data in the URL off to dealer.php. Link to comment https://forums.phpfreaks.com/topic/114135-setting-up-sub-sites/#findComment-586648 Share on other sites More sharing options...
discomatt Posted July 10, 2008 Share Posted July 10, 2008 Store it where? What? Link to comment https://forums.phpfreaks.com/topic/114135-setting-up-sub-sites/#findComment-586652 Share on other sites More sharing options...
envexlabs Posted July 10, 2008 Author Share Posted July 10, 2008 Hey, I think i've figured it out, i just a moment of brain retardation. Thanks! Link to comment https://forums.phpfreaks.com/topic/114135-setting-up-sub-sites/#findComment-586663 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.