Hi,

Am having trouble with mod_rewrite and would appreciate a little help.
I've tried searching Google and reading the manual but found little
that helps!

I am trying to achieve something like this:

RewriteRule ^a.php$ b.php [L]
RewriteRule ^b.php$ - [F]

The intention is that requests to a.php will serve the contents of
b.php, but if a user tries to go directly to b.php they are given a
403 error.  My understanding is that L flag stops further matching of
rules. but this doesn't appear to work, neither does a 'solution' from
Google of using the NS flag in the second rule.

If anybody can tell me whether I've misunderstood something, or if
there is a solution to this, I would be extremely grateful.

Steve

--
Stephen Wellington
07956 042387
01865 280000 ext 12438
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to