if site www.example.com
, user types in www.example.com/robert
display page @ www.example.com/users?user=robert
. want create profile page each user want accessible typing username after domain directory.
how can .htaccess?
enable mod_rewrite , .htaccess through httpd.conf
, put code in .htaccess
under document_root
directory:
options +followsymlinks -multiviews # turn mod_rewrite on rewriteengine on rewritebase / rewritecond %{request_filename} !-f rewriterule ^(.+?)/?$ /users.php?user=$1 [l,qsa]
Comments
Post a Comment