Connecting Tech Pros Worldwide Help | Site Map

adding username to Url

sharma
Guest
 
Posts: n/a
#1: Jul 17 '05
Hi,

I am developing a multilevel marketing system. This system will provide
users their own website(virtual). No real disk space. just play by
database and account status (paid or not paid).

I would like to have the url of a registered user like this

www.mysite.com/username/

I can create up to this point. when i tried to access this url. its the
requested url is not found..

Any ideas to make it work ?


Thanks in advance,
Sharma

Shelly
Guest
 
Posts: n/a
#2: Jul 17 '05

re: adding username to Url



"sharma" <sharma.chelluri@gmail.com> wrote in message
news:1121337592.319469.53960@g44g2000cwa.googlegro ups.com...[color=blue]
> Hi,
>
> I am developing a multilevel marketing system. This system will provide
> users their own website(virtual). No real disk space. just play by
> database and account status (paid or not paid).
>
> I would like to have the url of a registered user like this
>
> www.mysite.com/username/
>
> I can create up to this point. when i tried to access this url. its the
> requested url is not found..
>
> Any ideas to make it work ?
>
>
> Thanks in advance,
> Sharma[/color]

If you have a directory for each username, and in that directory have an
index.php or index.htm, then it should work. I have a site I am developing
and put all my management functions in a directory called manage which is
password protected. I access it as www.mysite.com/manage. All php and htm
calls are in that directory (unless I specify ../ in the code).

I assume that you will have control over what is uploaded by first checking
it before moving it into place. If so, then you can check for ../
occurances and deny the upload. Otherwise, you are opening up your world.

Shelly


JD
Guest
 
Posts: n/a
#3: Jul 17 '05

re: adding username to Url


You can do this with mod-rewrite

"sharma" <sharma.chelluri@gmail.com> wrote in message
news:1121337592.319469.53960@g44g2000cwa.googlegro ups.com...[color=blue]
> Hi,
>
> I am developing a multilevel marketing system. This system will provide
> users their own website(virtual). No real disk space. just play by
> database and account status (paid or not paid).
>
> I would like to have the url of a registered user like this
>
> www.mysite.com/username/
>
> I can create up to this point. when i tried to access this url. its the
> requested url is not found..
>
> Any ideas to make it work ?
>
>
> Thanks in advance,
> Sharma
>[/color]


Chung Leong
Guest
 
Posts: n/a
#4: Jul 17 '05

re: adding username to Url


Apache rewrite is the most direct approach. Creating a symlink for each
user to the same directory would work too.

Closed Thread