warid7840288 Posted April 7, 2007 Share Posted April 7, 2007 http://www.bizline.pk/huk/index.php?action=home http://www.bizline.pk/huk/index.php?action=category&cid=1 http://www.bizline.pk/huk/index.php?action=product_detail&cid=22&pid=23 i have the above URLs and i want to rewrite as the following http://www.bizline.pk/huk/home/ http://www.bizline.pk/huk/category/name/ http://www.bizline.pk/huk/product/product name/ how do i did it as i required, please! don't refer to any tutorials,,,,, actually i m new bie to php and looking many tutorials but not yet succeed plz help me, i m too worried about this technique Link to comment https://forums.phpfreaks.com/topic/45988-mode_rewrite/ Share on other sites More sharing options...
wildteen88 Posted April 8, 2007 Share Posted April 8, 2007 Have a read of this basic tutorial on mod_rewrite. If I give you the mod_rewrite rules you need you're not going to learn. When doing mod_rewrite it helps if you have an understanding of basic regular expressions in order to create your your rewrite rules. mod_rewrite has nothing to do with PHP. You keep the code of your script the same. No changes should[/b] have to be made to your PHP code. The only changes that may need to be made is the format of your url's for your links. Link to comment https://forums.phpfreaks.com/topic/45988-mode_rewrite/#findComment-224387 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.