Mod Rewrite Question

Hello ,
I have a problem.
Code:
RewriteRule ^dirs-([0-9]+)-([0-9]+).html directory.php?ax=list&sub=$1&cat_id=$2
Whenever i try to do this . I mean the original url in the directory is :
directory.php?ax=list&sub=$id&cat_id=$id
The first $id is for subcat value
And the second $id is for main cat value. I tried to rewrite it using the code above however it only printed out this part :
directory.php?ax=list
I mean it didn't include the rest : &sub=$1&cat_id=$2

Let me tell you what I exactly want so someone might help.
This is the original link in the script :
directory.php?ax=list&sub=$1&cat_id=$2
I want to make it :
directory-1-2.html (The "1" is for the $sub value and the second is the $cat_id value)

Any help would be truly appreciated .

Best Regarsds,
Umut Kale

 

 

 

 

Top