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