Replicated Website (MLM)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dColumbus
Forum Newbie
Posts: 2
Joined: Sat May 24, 2008 8:23 pm

Replicated Website (MLM)

Post by dColumbus »

How would I go about developing a system (in PHP) that would use one website GUI (in my case, Flash) that depending on the username (url example: http://www.somewebsite/username) would be able to pull its distict variables that would affect the FUI according to the usernames preferences (how those variables would be stored isn't important)... the point is to be able to basically replicate the website when requested at the example url above.

Multi-level marketing websites do this... they all use the same site, but a distributor can sign up and get his own url (ie /john) that is obviously displaying his personal information...

As I said, how those variables are stored isn't important, I just wanted to pick some brains to find out how it's possible for a subdirectory to be able to contain the very same website that's located at the public root... and yes I know there are systems out there to by, but I want to play around with developing my own replicating system.

Thanks so much in advance!
LSJason
Forum Commoner
Posts: 45
Joined: Mon May 12, 2008 4:43 pm

Re: Replicated Website (MLM)

Post by LSJason »

The easiest and best way would be to use a mod_rewrite rule to rewrite all URLs without a trailing slash (i.e. http://www.yoursite.com/john) and rewrite them to something like go.php?name=john.
dColumbus
Forum Newbie
Posts: 2
Joined: Sat May 24, 2008 8:23 pm

Re: Replicated Website (MLM)

Post by dColumbus »

Could you possibly create or point in the direction of a script that does this? I'm not quite familiar enough with how the rules work.
LSJason
Forum Commoner
Posts: 45
Joined: Mon May 12, 2008 4:43 pm

Re: Replicated Website (MLM)

Post by LSJason »

The short answer is...no. You have to do it yourself for something as custom as you seem to require.

Jason
Post Reply