devknob Posted July 26, 2007 Share Posted July 26, 2007 How would I set something up to where each user has a URL like website.com/username Should I be making folders, or is there a better way? Link to comment https://forums.phpfreaks.com/topic/61921-username-to-folder-name/ Share on other sites More sharing options...
redbullmarky Posted July 26, 2007 Share Posted July 26, 2007 have a google around for mod_rewrite (if you're on an Apache web server), as this is the general approach of most similar setups (eg, myspace). the idea is that instead of domain.com/username pointing to a username folder, it ACTUALLY points to something like domain.com/user.php?username=whatever in the background. Link to comment https://forums.phpfreaks.com/topic/61921-username-to-folder-name/#findComment-308315 Share on other sites More sharing options...
devknob Posted July 26, 2007 Author Share Posted July 26, 2007 I knew i wouldnt need to make 2934829348923 directories Thanks man Link to comment https://forums.phpfreaks.com/topic/61921-username-to-folder-name/#findComment-308317 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.