More information about the Underscore mailing list

[_] Any Apache PHP Wizards?

Rupert Jabelman rupert at jabelman.org
Thu Jan 3 14:36:13 GMT 2008

> However I'm rather aware that hacking the 404 isn't really an ideal
> solution, anybody know how to do it properly?

Stick (something like... This is from memory ;) ) this in your
.htaccess in the web root:

RewriteEngine On
RewriteRule ^/users/([a-zA-Z0-9]+)/?$ /user.php?username=$1

That'll pass an alphanumeric username to user.php in the web root.
Read it from $_GET['username'].

HTH

-R