Hi all!
I made a user_template.php for displaying any user's information from a database, however, I have a few questions after reading the modrewrite FAQ and the Working with Forms Tutorial.
I want users to come to www.domain.com/username to be redirected to www.domain.com/user_template.php?user=username.
1) Since my modrewrite won't contain numbers (as it did on the short tutorial at http://codewalkers.com/faq/4/13.html) and just ID's, how would I do it? Would it be something like this in my .htaccess file?:
RewriteEngine on
RewriteBase /
RewriteRule (<what goes here>+)/$ /user_template.php?user=$1
2) I do have access to my .htaccess file, but it already has a bit of stuff in it. One thing: my current .htaccess is in the /logs directory of my server. Can I make a new .htaccess for the root directory of my server (dont I have to do that?)?
Thanks a lot guys!
-influx!