Forum Moderators: phranque

Message Too Old, No Replies

Dynamically making domain.com/user

Would I have to make a directory in the root directory of my web server?

         

grimreaper1377

1:15 am on Nov 5, 2007 (gmt 0)

10+ Year Member



Hi all,

I have a site where every time a user signs up, they get their own page at www.domain.com/user

Would I have to make a directory in the root path of my server with the name of the user, or is there a different way to do this?

Thanks in advance.

vincevincevince

1:35 am on Nov 5, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld [webmasterworld.com] grimreaper1377.... although to be honest I was hoping not to meet you for some decades yet

My advice is to use mod_rewrite to handle it. You could rewrite any non-existing directory request to a script:

/something/ ==> /getuserpage.php?user=something

If you need more help in the specifics then post back here (including what kind of programming language you use, e.g. perl, php, ... and if you are using a database).