Hello, I'm new here.

I have some problems with .htaccess ( mod_rewrite ).

I'm traying to make nice links and use mod_rewrite. how ever its ont working how I expected.

I have 3 RewriteRuls that and I want to seperet them with a RewriteCond.

This is my .htacchess:
Code:
Options +FollowSymLinks
RewriteEngine On

RewriteCond %{QUERY_STRING} name=(.*)&sec=(.*)
RewriteRule ^(.*)-(.*)$ showsec.php?name=$1&sec=$2 

RewriteCond %{QUERY_STRING} name=(.*)&cat=(.*)
RewriteRule ^(.*)-(.*)$ showcat.php?name=$1&cat=$2 

RewriteCond %{QUERY_STRING} name=(.*)&id=(.*)
RewriteRule ^(.*)-(.*)$ showone.php?name=$1&id=$2
And it doesn't work, I think I'm making something wrong...
For now I'm woking on wamp. the htaccess is located in: www/subfolder/.htaccess
and the files are in the subfolder to.

What I want is that the first rule is appled only if a sec variable exists, the second if a cat variable exsists and the thirs if id exists.

So if anyone can help mi with that :, I'm trying this for 3 days and can't get it right...

And shuld i put the .htacces in the www directory, or can it be in the subfolder. ( I'll have more subfolders later, so if in eatch can be one htaccess for rewriting for the subfolder its in... )

Srry, for band Englsih