Connecting Tech Pros Worldwide Help | Site Map

adding username to Url

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 02:15 PM
sharma
Guest
 
Posts: n/a
Default adding username to Url

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


  #2  
Old July 17th, 2005, 02:15 PM
Shelly
Guest
 
Posts: n/a
Default 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


  #3  
Old July 17th, 2005, 02:15 PM
JD
Guest
 
Posts: n/a
Default 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]


  #4  
Old July 17th, 2005, 02:15 PM
Chung Leong
Guest
 
Posts: n/a
Default 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.

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.