URL with category description, need advice

Discuss practical ways rearrange URLs using mod_rewrite.

URL with category description, need advice

Postby sv800 » Thu Feb 02, 2006 5:06 am

Hi. Need some advice.

ORIGINAL URL
www.somesite.com/classified.php?cat=17

I want this url to be
www.somesite.com/deportes_categoria17.php

where "deportes" is the category description
Here is the directive I'm using

Code: Select all
RewriteEngine on
Rewriterule [.]_categoria(.*)\.php$ classified.php?%{QUERY_STRING}&cat=$1


It's giving 404, however I'm using same entry on a different host and it is working. Can be the Apache mod_rewrite version?

Thanks
sv800
 
Posts: 4
Joined: Fri Jul 29, 2005 7:38 am

Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 18 guests

cron