srgroves
07-16-2010, 01:25 AM
I'm building a site where users have profiles that I'd like to be located at:
http://www.mysite.com/profile/username/
When a user goes to that URL, I'd like to load a file, say profile.php located in the www folder. Also, I'd need to have some way of knowing which username was typed in the URL so profile.php can pull that user's data from the db.
It seems like aliases are the normal way of doing this, but I can't find any info regarding using aliases in php.ini -- it doesn't look like Hostmonster supports mod_rewrite in .htaccess files, and I'm not sure if this can be done using mod_rewrite anyway.
Is there a way to do this in php.ini or by some other means?
Thanks in advance.
http://www.mysite.com/profile/username/
When a user goes to that URL, I'd like to load a file, say profile.php located in the www folder. Also, I'd need to have some way of knowing which username was typed in the URL so profile.php can pull that user's data from the db.
It seems like aliases are the normal way of doing this, but I can't find any info regarding using aliases in php.ini -- it doesn't look like Hostmonster supports mod_rewrite in .htaccess files, and I'm not sure if this can be done using mod_rewrite anyway.
Is there a way to do this in php.ini or by some other means?
Thanks in advance.