hemo-ali Posted January 18, 2012 Share Posted January 18, 2012 Hey guys I've problem I want every member register to my site to see his profile at for example example.com/member how can I do that? Quote Link to comment https://forums.phpfreaks.com/topic/255279-create-dir-for-every-member/ Share on other sites More sharing options...
trq Posted January 18, 2012 Share Posted January 18, 2012 You do that by using mod_rewrite. Nothing to do with creating a new directory for each user. With mod_rewrite you can rewrite a url such as example.com/member to example.com/profile.php?user=member allowing you to use a single profile.php page for all users. Quote Link to comment https://forums.phpfreaks.com/topic/255279-create-dir-for-every-member/#findComment-1308845 Share on other sites More sharing options...
hemo-ali Posted January 18, 2012 Author Share Posted January 18, 2012 Nice I'm using this now example.com/profile?id=15 how can I use mod_rewrite Quote Link to comment https://forums.phpfreaks.com/topic/255279-create-dir-for-every-member/#findComment-1308846 Share on other sites More sharing options...
trq Posted January 18, 2012 Share Posted January 18, 2012 You should be able to find plenty of example on this board. Or google a tutorial. Quote Link to comment https://forums.phpfreaks.com/topic/255279-create-dir-for-every-member/#findComment-1308848 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.