hanan547 Posted September 14, 2010 Share Posted September 14, 2010 Hi, I have to ask about profile page for each user like facebook and netlog. As u can see in netlog it is like this http://en.netlog.com/ElegantLeo and i have a site http://cyprussaver.com/merchant.php?id=64 and here each merchant profile can be viewed like this but i need to show them like this http://cyprussaver.com/rocksman please guide me what i have to do in order to achieve this result. Thanks, Hanan ALi Link to comment https://forums.phpfreaks.com/topic/213370-profile-page-for-each-user/ Share on other sites More sharing options...
Hate Posted September 14, 2010 Share Posted September 14, 2010 Have a look at mod_rewrite: http://corz.org/serv/tricks/htaccess2.php Link to comment https://forums.phpfreaks.com/topic/213370-profile-page-for-each-user/#findComment-1110936 Share on other sites More sharing options...
inversesoft123 Posted September 14, 2010 Share Posted September 14, 2010 Open your .htaccess file and add following lines of code RewriteEngine on RewriteRule ^merchant/(.*)$ /merchant.php?id=$1/ [L] I have explained this in thread http://www.phpfreaks.com/forums/index.php/topic,292197.html Link to comment https://forums.phpfreaks.com/topic/213370-profile-page-for-each-user/#findComment-1110938 Share on other sites More sharing options...
hanan547 Posted September 14, 2010 Author Share Posted September 14, 2010 Thanks both of you (Hate & inversesoft123) for guiding me the right direction thanks again Link to comment https://forums.phpfreaks.com/topic/213370-profile-page-for-each-user/#findComment-1110939 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.