[Rewrite Newbie] Rules question

[Rewrite Newbie] Rules question

am 10.08.2007 15:22:25 von marcandre.appel

Hello everybody!

I'm not very good in regular expressions and the rules for
mod_rewrite, that's why i come here to ask you for a little help.

I want in the .htacces file 3 rules:

When someone types www.domain.tld, i want to send everything to the
script index.php, as well if it is www.domain.tld/page/1. The rule:

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L,NS]

works fine.

But now i want that when www.domain.tld/other/* is typed, i want to
have everything send to the script other.php. I tried the rule:

RewriteRule ^/members/(.*)$ ../bin/account.php [L]

before and after the first rule, but i become a 404.
So i guess that the first rule is the cause for the 404, correct me
please if i'm wrong.

So what do i have to do that the 2 conditions works?

Thank you all in advance for your time and best regards,

Marc-Andr=E9