SearchSearch   

[Rewrite Newbie] Rules question

 
   Webmaster Forums (Home) -> Apache RSS
Next:  Problem with apxs and mod_proxy  
Author Message
Marc-André_Appel

External


Since: Aug 10, 2007
Posts: 1



(Msg. 1) Posted: Fri Aug 10, 2007 6:22 am
Post subject: [Rewrite Newbie] Rules question
Archived from groups: alt>apache>configuration (more info?)

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é
Back to top
Display posts from previous:   
       Webmaster Forums (Home) -> Apache
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum