DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42731>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42731


[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From [EMAIL PROTECTED]  2007-06-25 11:55 -------
I think the problem you are facing is that you are using [L] flag in first
rewrite rule and use (.*) in second rewrite rule. The result is that if first
one ends the new request will follow second automatically after redirect and
you may conclude that first [L] didn't work.

e.g
/Admin -> After first rewrite -> /admin.php (request will end here).

New URI after redirect /admin.php
First rewriterule -> fails and continues.
Second rewriterule -> Succeed and you get /index.php?file=admin.php

Here is  my experimentation :

    RewriteEngine On
    RewriteBase /
    RewriteRule ^Admin$ admin.php [L]
    RewriteRule (.*) cgi-bin/index.php?file=$1 [QSA,L]

URI : /Admin
First pass : /admin.php

New URI after redirect : /admin.php
After rewrite rule : /cgi-bin/index.php?file=admin.php
prints admin.php



Use the
RewriteLog rewrite.log
RewriteLogLevel 3
to monitor what is happening.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to