ankur0101 Posted February 5, 2012 Share Posted February 5, 2012 Hi, I have a page such as www.xyz.com/search.php?name=john.b Using .htaccess, I want it as www.xyz.com/john.b Is it possible ? Quote Link to comment https://forums.phpfreaks.com/topic/256481-using-htaccess-rules-for-php/ Share on other sites More sharing options...
jcbones Posted February 5, 2012 Share Posted February 5, 2012 You are looking for mod_rewrite. Quote Link to comment https://forums.phpfreaks.com/topic/256481-using-htaccess-rules-for-php/#findComment-1314829 Share on other sites More sharing options...
ankur0101 Posted February 6, 2012 Author Share Posted February 6, 2012 Yes, I know this can happen only with mod rewrite but how to write that code ? Quote Link to comment https://forums.phpfreaks.com/topic/256481-using-htaccess-rules-for-php/#findComment-1315089 Share on other sites More sharing options...
jcbones Posted February 7, 2012 Share Posted February 7, 2012 That is a very good tutorial on how to use mod-rewrite. Quote Link to comment https://forums.phpfreaks.com/topic/256481-using-htaccess-rules-for-php/#findComment-1315352 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.