I am coming up with a new site, which will be community-driven and
subscription-based. I would like for people to go ato a URL that is
friendly and easy to remember.
Let's say my domain is mydom.com. I am a new user who just registered
newsite as my name. I want to load a PHP file, but call it something
other than - say - default.php. In other words, I want to load a
pagedefault.php file which will pull information from a database based
on the user's name. There are not going to be user directories. (The
user will have no ability to upload using FTP.)
As I currently see it, I can do something like:
http://www.mydom.com/default.php?username=newsite
What I'd like to do is something like:
http://www.mydom.com/newsite/default.htm on the address bar of the
browser. This will be parsed into the correct parameter
(username=newsite) and the correct page (default.php) will be loaded.
I noticed one semi-related item here from a bit ago..
www.webmasterworld.com/forum88/421.htm
This forum post describes the use of MOD_REWRITE.
Ideas?
Kai
www.perfectreign.com - The Project Management Site