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 ? 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. 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 ? 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. 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
Archived
This topic is now archived and is closed to further replies.