Doesnt work? really? working fine on my end, tested with a WIndows Servers and Linux Servers.

only thing is if the first parameter has upper case letters it wont work so add A-Z to the.... never mind  ok copy paste this patch

RewriteRule ^([a-zA-Z0-9\-]+)/([a-zA-Z0-9\-]+)$ index.php?category=$1&mykey=$2


This will check for lower case letters, upper case letters, numbers and the hyphen. if there are any other characters it will fail so you
can add others as appropriate

Let me know if this helps

Steve Obbayi
Software Developer
http://sobbayi.com



----- "jamo njoroge" <patjayke@gmail.com> wrote:
> Thanks Steve,
The module is setup ok as i have a rule the forces www.mydomain.com instead of mydomain.com and it works fine but for some reason the rule you gave me does not work.
>
>
> On Tue, Dec 14, 2010 at 7:00 AM, Steve Obbayi <steve@sobbayi.com> wrote:
>
> RewriteEngine On
>
> RewriteRule ^([a-z0-9\-]+)/([a-zA-Z0-9\-]+)$ index.php?category=$1&mykey=$2
>
>
> If your module is actually set up okay the rule above should work for your link
>
> --
> Steve Obbayi
> Software Developer
> http://sobbayi.com
>
>
> ----- "jamo njoroge" <patjayke@gmail.com> wrote:
> >
Hi skunks,
i have been struggling on how to create a rewrite rule for this link on the htaccess file on my root folder anyone out there has a clue? Ive been to many online rewrite rule sir\tes where i feed this link and the resultant rule is simply not picked up by the mod_rewirite apache module.
 
http://www.mydomain.com/index.php?category=mycategory&mykey=mykey
>

> _______________________________________________
> Skunkworks mailing list
> Skunkworks@lists.my.co.ke
> http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
> ------------
> Skunkworks Rules
> http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
> ------------
> Other services @ http://my.co..ke
>

>

> _______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

--
Steve Obbayi

SKYPE: sobbayi
http://sobbayi.com
http://blog.sobbayi.com