http://www.sitename.com/catalog.php?act=item_detail&id=3

Discuss practical ways rearrange URLs using mod_rewrite.

http://www.sitename.com/catalog.php?act=item_detail&id=3

Postby seotester » Mon Jun 02, 2008 3:50 am

Can someone help me.. i am not at all aware of Rewrite rules n conditions

This is the URL sitename.com/catalog.php?act=item_detail&id=31982

and i want it to look like this

sitename.com/catalog/item-name (i dont want the ID but i want the name to appear like sitename.com/catalog/hp-computers

Thanx
seotester
 
Posts: 1
Joined: Mon Jun 02, 2008 3:45 am

use this

Postby munesh » Tue Jun 03, 2008 4:16 am

RewriteEngine on
RewriteBase /
RewriteRule ^([0-9]+)/(.*)/$ list.php?act=category&id=$1
munesh
 
Posts: 12
Joined: Fri May 04, 2007 10:33 am

Postby richardk » Tue Jun 03, 2008 2:05 pm

richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 109 guests

cron