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 Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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.