Jump to content

Subdomain/ directory and registration?


Solarpitch

Recommended Posts

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

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

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.