Jump to content
Larry Ullman's Book Forums

tomhp

Members
  • Posts

    2
  • Joined

  • Last visited

tomhp's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thanks for the advice. As you suggested, I will just continue to use the format I already have working - example.com/profile/johndoe
  2. Hi Larry and forum members, I really enjoyed and learned a lot from this book. I built many of the projects on my localhost. I really liked the message board presented in chapter 17. I am trying to add features to this, such as a profile page and even a basic photo gallery. I have a question about URL rewrite. I would like for users to be able to access their profile page with - example.com/johndoe - Currently it is - example.com/profile.php?user=johndoe - I understand how to use .htaccess to shorten URLs. I know how to change - example.com/profile.php?user=johndoe - into - example.com/profile/johndoe But how do you change it to - example.com/johndoe ? I have been looking at the features of every social network and forum I could find, and I have seen this feature available. On tagged.com you can choose your own profile URL and then access it with - tagged.com/tomhp1 Also, I work for a school that has a CMS that allows you to create “web address mappings.” If we have our Elementary music department at - school.edu/site/Default.aspx?PageID=76 - I can choose a name like ElemMusic and map it to that page. We can then access that page with - school.edu/ElemMusic - How is this possible? Can this be done with PHP? I have been searching for information about this, but I haven’t been able to find anything about the examples above. Can you or one of your readers tell me what type of technique or technology is being used? I’m not asking for finished code, just a pointer in the right direction. Thanks for whatever guidance you can provide - Tom.
×
×
  • Create New...