Jump to content

mode_rewrite


warid7840288

Recommended Posts

 

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.