url rewriting - Creating a public profile and custom URL in PHP -


i'm looking create user admin area , public profile page custom url in php. have found great tutorial on users creating own private admin area. however, i'm struggling find further guidance on following:

  1. creating public custom url (such as website.com/username) based on user requested on signup.

  2. using custom url display public profile page selected information user entered private admin area.

i know bread , butter stuff i'm leaning php guidance , best practices @ stage welcome.

thanks, jack.

you try following:

  1. use mod_rewrite (assuming have apache server) forward domain.com/abcde requests don't match existing file or directory (see -f condition) domain.com/user.php?name=abcde
  2. in user.php, data based on user-chosen name database , display it, display error message if no user found.

Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -