Solarpitch Posted March 13, 2009 Share Posted March 13, 2009 Hey Guys, just wondering how websites achieve this. Bebo for example, when someone register's the site will automatically create a subdomain/ directory for them with their username bebocom/username or username.bebo.com I'm working on a project that will need to use this principle so just wondering how this is achieved? Cheers Link to comment https://forums.phpfreaks.com/topic/149305-subdomain-directory-and-registration/ Share on other sites More sharing options...
Eiolon Posted March 13, 2009 Share Posted March 13, 2009 http://www.easymodrewrite.com/example-subdomains EDIT: I wasn't clear on if you wanted an actual directory made or if you wanted it to look like one was made. Hopefully the above does what you want it to. Link to comment https://forums.phpfreaks.com/topic/149305-subdomain-directory-and-registration/#findComment-784066 Share on other sites More sharing options...
Solarpitch Posted March 13, 2009 Author Share Posted March 13, 2009 Thanks man! Link to comment https://forums.phpfreaks.com/topic/149305-subdomain-directory-and-registration/#findComment-784069 Share on other sites More sharing options...
ionik Posted March 13, 2009 Share Posted March 13, 2009 to create a sub domain upon registration would require. 1. You are hosted on a dedicated server 2. Create a subdomain conf file for apache. 3. Run a cron job to update that file to include new user account subdomains. 4. Mod_Rewrite to correctly route the subdomains to where they need to be pointed Link to comment https://forums.phpfreaks.com/topic/149305-subdomain-directory-and-registration/#findComment-784126 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.